title: Why can't I programatically set the value on my hidden field on a repeater?
body: <p>I've had this strange problem come up. I have a <code>RowDataBound</code> event handler for a repeater control.</p>
  
  <p>I have the code:</p>
  
  <pre><code>HiddenField hfIpAddressRangeId = (HiddenField)e.Row.FindControl("hfIpAddressRangeId");
  hfIpAddressRangeId.Value = .IpAddressRangeId.ToString();
  </code></pre>
  
  <p>But when I look at the html the value of that control is not set. However when I set the value using inline C# such as</p>
  
  <pre><code>&lt;asp:HiddenField runat="server" Value='&lt;%# Eval("IpAddressRangeId ") %&gt;' ID="hfIpAddressRangeId" ViewStateMode="Enabled" /&gt;
  </code></pre>
  
  <p>The value is being set. I'm not really sure why this won't work when I bind each datarow?</p>