title: getting image src on click on image in data list
body: <p>I have <code>datalist</code> containing images.</p>
  
  <p>I have bounded these images to <code>datalist</code> by taking image names from database.</p>
  
  <p>I just want to get <code>src</code> [Path of image] which user clicks on datalist.</p>
  
  <p>My datalist is as following:</p>
  
  <pre><code>    &lt;asp:DataList ID="dlImages" runat="server" RepeatColumns="4"&gt;
          &lt;ItemTemplate&gt;
             &lt;asp:ImageButton ID="ImageButton1" Height="200px" Width="200px"  runat="server" /&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>and i have bounded it as follows:</p>
  
  <pre><code>   Protected Sub dlImages_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlImages.ItemDataBound
              If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.EditItem Then
                  CType(e.Item.FindControl("ImageButton1"), ImageButton).ImageUrl = "~/ScreenMasterImages/" &amp; e.Item.DataItem("PageName") &amp; ".jpg"
              End If
          End Sub
  </code></pre>
  
  <p>Please help me to get src of particular image which user clicks on datasource.</p>