title: Set Gridview DataNavigateUrlFormatString Dynamically inside User Control(ASCX)
body: <p>i have a issue that i dont know if it can be done.</p>
  
  <p>i have an  in an aspx page , 
  that loads dedpends on user activity a user control (ascx).</p>
  
  <p>the user control has a gridview which one of my columns are hyperlink. </p>
  
  <pre><code>&lt;asp:HyperLinkField  DataNavigateUrlFormatString='&lt;%page %&gt;'
          DataTextField="ReqId" HeaderText="Request No." DataNavigateUrlFields="ReqId" /&gt;
  </code></pre>
  
  <p>i want that on click of that hyperlink , it will direct to the same page with parameters, 
  but i cant do it right. for some reason so i  tried this one:</p>
  
  <pre><code>&lt;%string page = Page.Request.Path + "reqid={0}"; %&gt;
  </code></pre>
  
  <p>but in the page the link refers to %page% as a string .
  can someone pls direct me how to it.</p>
  
  <p>p.s 
  it used to work when it was like that and the ascx was in root folder of the solution, the problem start when i moved all my controls to a folder in the root named "Controls"</p>
  
  <pre><code>&lt;asp:HyperLinkField  DataNavigateUrlFormatString="?reqid={0}"
          DataTextField="ReqId" HeaderText="מספר בקשה" DataNavigateUrlFields="ReqId" /&gt;
  </code></pre>
  
  <p>thanks in advance.</p>