Possible to use a link control to validate and submit a form? What would be the code to tie the click event of the link control to the submission functions? (I prefer link buttons much more than input buttons for styling across browsers.)
A:
There's a control built in for this: LinkButton.
Instead of <asp:Button />
use <asp:LinkButton />
to render an <a ... />
link, style it as you wish :)
You use it the same way as you do a Button
control, assign a handler to it's OnClick
event, etc, whatever you need to do. The handling from your code's perspective is very similar, identical in most cases.
Nick Craver
2010-07-18 11:55:29
perfect, thanks!
Brandon
2010-07-18 13:56:43