Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create html file on button click event using string builder on code page. in that file i want to use hyperlink for first table link redirect to the second table of specific record that record belongs to first table. how can i do..

thanks in advance....
Posted
Updated 16-Feb-12 22:50pm
v2

C#
HtmlAnchor link = new HtmlAnchor();
     link.InnerHtml = "test";
     link.InnerText = "test";
     link.HRef = "WWW.Google.co.in"; // Here you need to give your link. You can appen like a string builder also
     Page.Controls.Add(link);
 
Share this answer
 
StringBuilder sb = new StringBuilder();
sb.Append("<a href="www.mylink">myllink</a>");
Response.Write(sb.ToString());
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900