asp.net - Multiple command in one linkbutton control -


i'm new asp.net development. ask if possible 1 link button have 2 or more commands?

what want happen link button should able handle edit , update commands. once click link in grid view, show data on respective controls (i.e textbox name have data of clicked) once edit data on textbox , click same link update , save in database.

 <asp:templatefield headertext="id">                     <itemtemplate>                         <asp:linkbutton id="lnkedit" runat="server" commandargument='<%#eval("id")%>'  commandname="update"                               headertext="id" sortexpression="id" text='<%#eval("id")%>'>                          </asp:linkbutton>                     </itemtemplate>                  </asp:templatefield> 

thanks in advance. please help!. :)

its not possible have multiple commandname 1 linkbutton,but when click linkbutton editing can change commandname "update".i think solve problem.for changing commandname linkbutton refer this link.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -