Set HREF of HTML Anchor Tag from server side ASP.Net

Last Reply on Aug 17, 2012 10:55 PM By Mudassar

Posted on Aug 17, 2012 10:52 PM

hi 

  how i can bind <a href="?"> from database?

thanks

 

Posted on Aug 17, 2012 10:55 PM

Add runat = "server" to anchor Tag

<a id = "anchor" runat = "server" />

And then in code

anchor.HRef = "http://aspforums.net";

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html