Hi!
How can i activate a C# function from a simple html table?
i'm working with ASP .Net
Appreciate,
Hi!
How can i activate a C# function from a simple html table?
i'm working with ASP .Net
Appreciate,
This would normally be done via AJAX, if I understand you correctly.
Edit:
You could also use Windows Forms, but I work in an ASP.NET MVC world now, and hope to never use Windows Forms again.
Add a <asp:Button id="id" text="label" OnClick="sub" runat="server" />
(or even <asp:LinkButton runat="server" OnClick="sub" text="YourLinkText" />
, see here ) to your page, then define a function sub()
to handle your call.
The sub()
function can be both in ASPX code or in code-behind file (it is advisable to choose the code-behind way)
See an example here: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.aspx