I know this has to be an easy question; but I haven’t been able to find a solution online. I’m new to ASP.Net and I’m trying to trigger a PostBack when the user clicks on a Text link.
I tried using the HyperLink control, with runat=”server”; but it doesn’t have a Click event. If I set the URL to my page and include a querystring value (like ?test=a) it will reload my page, but IsPostBack will be false.
I know I can do this with buttons, but I prefer the look of a text link.
What should I be using?
EDIT: Thanks for the responses. Sorry for asking such a silly question.
There is a control called
LinkButton– it is a button that looks like a hyperlink.They are described here on MSDN: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linkbutton.aspx