Grid view image bind from sharepoint list in onrowdata bound event
<
<
{
{
img.ImageUrl = imageurlvale;
}
}protected void Grdshow_RowDataBound(object sender, GridViewRowEventArgs e)if (e.Row.RowType == DataControlRowType.DataRow)Label lblimg = e.Row.FindControl("lblimg") as Label;Image img = e.Row.FindControl("img") as Image;var text = lblimg.Text;SPFieldUrlValue imgurl = new SPFieldUrlValue(text);string imageurlvale = new Uri(imgurl.Url).AbsoluteUri;td rowspan="7" style="display:none"><asp:Label ID="lblimg" runat="server" Text='<%#Eval("ProfilePicture")%>'></asp:Label></td>td><asp:Image ID="img" runat="server" /></td>
<
<
{
{
img.ImageUrl = imageurlvale;
}
}protected void Grdshow_RowDataBound(object sender, GridViewRowEventArgs e)if (e.Row.RowType == DataControlRowType.DataRow)Label lblimg = e.Row.FindControl("lblimg") as Label;Image img = e.Row.FindControl("img") as Image;var text = lblimg.Text;SPFieldUrlValue imgurl = new SPFieldUrlValue(text);string imageurlvale = new Uri(imgurl.Url).AbsoluteUri;td rowspan="7" style="display:none"><asp:Label ID="lblimg" runat="server" Text='<%#Eval("ProfilePicture")%>'></asp:Label></td>td><asp:Image ID="img" runat="server" /></td>
No comments:
Post a Comment