programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Thursday, February 19, 2015

How to show datalist item details in jquery popup window in ASP.Net

How to show datalist item details in jquery popup window in ASP.Net:

How to Display items in PopUp from DataList Button Click in 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 <pagename>.aspx:

<body>     <form id="form1" runat="server">     <div>         <asp:Image ID="Image1" runat="server" /></div>     </form> </body>

Other Related Post :

No comments:

Post a Comment