G
Gary
Hello,
I am currently new to .NET, as you can probably tell by my last two or three
threads!!!
Anyway, I am using code behind as much as possible - and am curious about
the way in which functions can be triggered.
It seems if I use an <asp:button...> control, I can assign a function which
exisits on my .CS file, for example:
<asp:button... OnClick="Button_Click">
However, this function is not available on for example a standard <A> tag:
<A href="#" OnClick="Button_Click" runat="server" />
I am *guessing* this is because the button submits the .net form, which
forces the page to read the CS file again, which is when it can execute the
various functions?
My question is, is it possible or sensible to try and access these functions
without using a form button?
Regards,
Gary.
I am currently new to .NET, as you can probably tell by my last two or three
threads!!!
Anyway, I am using code behind as much as possible - and am curious about
the way in which functions can be triggered.
It seems if I use an <asp:button...> control, I can assign a function which
exisits on my .CS file, for example:
<asp:button... OnClick="Button_Click">
However, this function is not available on for example a standard <A> tag:
<A href="#" OnClick="Button_Click" runat="server" />
I am *guessing* this is because the button submits the .net form, which
forces the page to read the CS file again, which is when it can execute the
various functions?
My question is, is it possible or sensible to try and access these functions
without using a form button?
Regards,
Gary.