I want to make a Link dynamically in Asp.net page.
here is my aspx code:
<a href='<%# String.Format("LeadInformation.aspx?refNo={0}&imgpath={1}",refno[0],imgpath[0]) %>'>
Aspx.cs code:
public String[] imgpath = new string[8];
public String[] refno = new String[8];
protected void Page_Load(object sender, EventArgs e){
imgpath[0] ="some path";
refno[0] = "some refno";
....
}
This way is not working for me. please help me to assign refNo={0}&imgpath={1} to create the link. Thank you.
In your .aspx file:
In your code: