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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -