title: Placing a variable from my Code Behind inside Repeater Control for NavigateUrl
body: <p>This is my Repeater</p>
  
  <pre><code>&lt;asp:Repeater ID="blogRepeater" runat="server"&gt;
                  &lt;ItemTemplate&gt; 
                  &lt;br /&gt;       
                      &lt;asp:Image ID="Image1" runat="server" Height="56px" ImageUrl='&lt;%= string.Format( My_Variable) %&gt;' Width="64px" /&gt;
                      &lt;asp:HyperLink ID="HyperLink2" runat=server NavigateUrl='&lt;%#Eval("Company_ID", "CompanyProfile.aspx?ID={0}")%&gt;'&gt;&lt;%#Eval("Name")%&gt;&lt;/asp:HyperLink&gt;
                      &lt;br /&gt; 
                  &lt;/ItemTemplate&gt;
                  &lt;SeparatorTemplate&gt;
                      &lt;hr /&gt;
                  &lt;/SeparatorTemplate&gt;
              &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>This is my Code behind in Page Load</p>
  
  <pre><code>' Define data objects
          Dim conn As Data.SqlClient.SqlConnection
          Dim Comm As Data.SqlClient.SqlCommand
          Dim reader As Data.SqlClient.SqlDataReader
  
          conn = New Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString)
  
          Comm = New Data.SqlClient.SqlCommand( _
          ("SELECT Company_ID, Name FROM CompanyTable ORDER BY Name"), conn)
  
          Dim My_Variable As String
  
          My_Variable = "~/createthumb.ashx?gu=/images/Logo.bmp" + "&amp;xmax=75&amp;ymax=75"
  
          ' Open the connection
          conn.Open()
          ' Execute the category command
          reader = Comm.ExecuteReader()
  
          ' Bind the reader to the repeater.......................
          blogRepeater.DataSource = reader
  
          blogRepeater.DataBind()
  
          ' Close the reader
          reader.Close()
          ' Close the connection
          conn.Close()
  </code></pre>
  
  <p>Now I have a variable called <code>My_Variable</code>. How can I place that variable <code>My_Variable</code> inside my Repeater above?</p>