How do you embed asp.net code in c# ?

Bachelor boy

New member
The code goes like this:

string st1=@"TPics\";
st2= rd["DlNo"].ToString(); // (Database code)
string st3="T.jpg";

//Hyperlink should start here -----
Response.Write("<Img src='" + st1 + st2 + st3 + "' width='106' height='96'>"); //Display image dynamically
//Hyperlink should end here ------


This is a c# page. How to embed hyperlink code as shown bellow in between c# code ? Can you pick up hyperlink value from the target page ?

Response.Write("<asp:HyperLink ID='HyperLink3' NavigateUrl="ab.aspx" runat='server'>);
IN other words I want to make the hyperlink dynamic in c#
 
Back
Top