tags:

views:

73

answers:

2

Hi!

How can i activate a C# function from a simple html table?

i'm working with ASP .Net

Appreciate,

+1  A: 

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.

RedFilter
there is no other way???
Jack
Without post back, no.
gmcalab
+2  A: 

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

naivists