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

Thursday, February 19, 2015

How To Display Particular Details Product Images In DataList In Asp.Net

  • How To Display Particular Details Product Images In DataList In Asp.Net:



Display Particular Details Product Images In Asp.net DataList:

try this in viewbutton click
 protected void viewbutton_Click(object sender, EventArgs e)
    {
       
        StringBuilder st = new StringBuilder();
        st.Append("<script language=javascript>");
        st.Append("var w = window.open('popup.aspx?_id=someuniqueidofyourimageorpathonserver','ChatWindows','height=400px,width=400px top=50, left=50,bottom=50,right=50');");//opens the pop up
        st.Append("w.focus()");//sets the focus on to the pop up
        st.Append("</script>");
        Page.ClientScript.RegisterStartupScript(this.GetType(), "openpopup", st.ToString());
    }


How to Display items in PopUp from DataList Button Click in Asp.net:

on popup.aspx load read the querystring and display image based on id or path of image like


popup_Load
{
if(Request.QueryString["_id"]!=null)
string _id=Request.QueryString["_id"];

}



Other Related Post :






No comments:

Post a Comment