5
Answers

Gridview

Sweety

Sweety

13y
2.3k
1
I have to generate employee id that start with 0001,0002.....so on and i have empdetails form where i need to display this generated id in the textbox and all other details will be entered by the employee when they click on save button this details as to be stored in the database and i have gridview after saving in the db the id and name of the employee should be displayed in this grid with id and name made as hyperlink when the employee clicks on either of this the empdetails form should open where he can edit his details if the user wants except id all other details can be editable.

Can any1 help me on this.

With Regards,
Sweety
Answers (5)
0
nishant ranjan

nishant ranjan

NA 415 0 13y

<asp:LinkButton ID="lnk_btn" runat ="server" CommandArgument='<%#Eval("id")%>' CommandName ="productid" Text ='<%#Eval ("productname") %>'>

</asp:LinkButton>


try this

0
nishant ranjan

nishant ranjan

NA 415 0 13y
try this
0
Sweety

Sweety

NA 98 90k 13y
I need to make gridview column as hyperlink.
0
Lalit M

Lalit M

NA 6.7k 48k 13y
Hi,,,S

you can visit this link you will get your idea/solutions..

http://csharpdotnetfreak.blogspot.com/2009/09/popup-update-refresh-parent-child.html

http://www.codeproject.com/KB/grid/GridViewInlineEdit.aspx


Hope you help...!!
if help you pls check me in checkbox
Thanx .....
0
Rakesh  Jha

Rakesh Jha

NA 340 5k 13y