how to add post back event on anchor tag

Posted by Klbaiju under ASP.NET on 8/7/2012 | Points: 10 | Views : 3950 | Status : [Member] | Replies : 2
hi in my application .there is a captcha.when i add aspx link button and press that ,capcha will change.

but i want to add an anchor tag

like this .
<a ID='LinkButton1' href='#' runat='server' >Try a new code</a>

how it is possible.



Regards



Baiju




Responses

Posted by: Sheonarayan on: 8/7/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can write like this, what is the problem you are facing? If you do not want to fire any server side method or send the user to another page on click on hyperlink, simply write something like this.

<a href="javascript:void(0)">something</a>


Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: The_Ryan on: 8/7/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks, very resourceful post!! I never knew about it...

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response