Call c# function from html <a> -
i'm trying call c# server-side function when link pressed. function is:
public void check() { response.write("clicked"); }
what should tag when press function called?
take linkbutton in .aspx file:
<asp:linkbutton id="btnsumb" runat="server" text="sgas" onclick="btnsumb_click" />
and in code behind .aspx.cs file:
protected void btnsumb_click(object sender, eventargs e) { check(); }
Comments
Post a Comment