title: Sitecore Accessing Field value to ASP Control
body: <p>Can any one tell me if I can use a ASP Control instead of Field Renderer to display the field.Please see below illustration.
  Note:I need to do it in the Item Databound  Event of Repeater.</p>
  
  <p>I have a template with Field as External Link .Eg :Contact US .One way to display that link in the page is using field renderer as below.</p>
  
  <p>ContactUS.aspx:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptContactUS" runat="server" OnItemDataBound="Menu_OnItemDataBound"&gt;
          &lt;ItemTemplate&gt;
             &lt;item&gt;&lt;sc:FieldRenderer ID="frContactUS" runat="server"/&gt;&lt;/item&gt;                                           
         &lt;/ItemTemplate&gt;    
   &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>ContactUS.aspx.cs:</p>
  
  <pre><code>protected void Menu_OnItemDataBound(object sender, RepeaterItemEventArgs e)
      {
          Field item = (Field)e.Item.DataItem;
          if (item != null)
          {
              FieldRenderer frContactUS= (FieldRenderer)e.Item.FindControl("frContactUS");
              if (frContactUS!= null)
              {
                  frContactUS.FieldName = item.Name;
              }
          }    
      }
  </code></pre>
  
  <p>The above code works fine.My Question is Whether I can use a Asp control instead of FieldRenderer and assign the link value from the Field Item to asp href property of the link in item databound event of repeater.If yes,Please tell me how?</p>
  
  <p>Thanks,
  Suhas</p>