title: How to access ImageUrl property of the Image Control placed inside a ItemTemplate in the GridView
body: <p>My GridView Markup: </p>
  
  <pre><code>&lt;asp:GridView ID="GrdVw" visible="False" runat="server" AllowPaging="True" 
      AutoGenerateColumns="False"&gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="Title" HeaderText="Title" /&gt;
          &lt;asp:BoundField DataFi
  
  eld="Comment" HeaderText="Comment" /&gt;
  
              &lt;asp:TemplateField HeaderText="Review Document"&gt;
                  &lt;ItemTemplate&gt;
  
                  &lt;asp:Image ID="currentDocFile" runat="server" /&gt;
              &lt;/ItemTemplate&gt;
              &lt;EditItemTemplate&gt;
                  &lt;asp:FileUpload ID="reviewDoc_UpldFl" runat="server" /&gt;
              &lt;/EditItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:CommandField ShowEditButton="True" /&gt;
          &lt;asp:CommandField ShowDeleteButton="True" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>My Bind Method that I call from Page_Load and after Cancelling/Updating, etc:</p>
  
  <pre><code>    private void BindGrdVw()
      {
          List&lt;ArticleComments&gt; commentsList = ArticleCommentsBLL.GetComments(ArticleID);
          if (cruiseReviewsList.Count != 0)
          {
              GrdVw.DataSource = commentsList;
              GrdVw.DataKeyNames = new string[] { "ID" };
              GrdVw.DataBind();
              GrdVw.Visible = true;
          }
       } 
  </code></pre>
  
  <p>..Now as you see I have a template field, I access the 'FileUpload' control in the EditTemplate by 'FindControl()' of the row that I'm editing. but how can I access the 'Image' control's property 'ImageUrl'.</p>
  
  <p>I need to set it to something like the following, this is a sample code from another project in the code behind file but I was able to access the image directly.</p>
  
  <pre><code>currentProfilePic_Img.ImageUrl = ConfigurationManager.AppSettings["cruisesPpUploadPath"].ToString() + currentCruise.ProfilePic;
  </code></pre>
  
  <p>*The AppSettings returns the path for the folder that I use for uploading.</p>
  
  <p>*currentCruise is an object and it's properties was assigned through my DAL layer.</p>