c# - Can I add HTML button triggers to update panel -


is possible add html input buttons asp.net triggers, have message box works gridview in update panel,

but when go different page of gridview, message box displays buttons stops working, don't know how debug it, please help.

this button,

<input type="button" id="button2" value="cancel" cssclass="rightbutton" /> 

and can add to,

<asp:asyncpostbacktrigger controlid="button2" eventname="click" /> 

or should not ?

with runat server tag use html controls in c# script.

i.e

<input type="button" id="button2" value="cancel" cssclass="rightbutton" /> 

should be

<input type="button" id="button2" value="cancel" cssclass="rightbutton" runat="server" /> 

and when double click on it(assuming vs ide), make new click event in c# snippet. besides practice use direct html tags when complex functions not needed, saves time display page, asp component first translates in html , goes browser; while approach saves time of translation.

regards


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -