Asp.net Datalist control item details in jquery popup window:
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<a id="Link1" runat="server" href='<%# "ShowDetail.aspx" + "?img=" + Eval("theImgUrl") + "&des=" + Eval("theDescription") %>' target="_blank">
<asp:Image ID="Image1" ImageUrl='<%#Eval("theThumbNailUrl") %>' runat="server" />
</a>
</ItemTemplate>
</asp:DataList>
code for <pagename>.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Request.QueryString["des"]);
this.Image1.ImageUrl=Request.QueryString["img"];
}
code for asp.net <pagename>.aspx:
<body>
<form id="form1" runat="server">
<div>
<asp:Image ID="Image1" runat="server" /></div>
</form>
</body>
Other Related Post :
Comments
Post a Comment