title: Make a dynamic Link in Asp.net page
body: <p>I want to make a Link dynamically in Asp.net page.</p>
  
  <p>here is my aspx code:</p>
  
  <pre><code>  &lt;a href='&lt;%# String.Format("LeadInformation.aspx?refNo={0}&amp;imgpath={1}",refno[0],imgpath[0]) %&gt;'&gt;
  </code></pre>
  
  <p>Aspx.cs code:</p>
  
  <pre><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";
  ....
  }
  </code></pre>
  
  <p>This way is not working for me. please help me to assign refNo={0}&amp;imgpath={1} to create the link. Thank you.</p>