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 :






Comments

Post a Comment

Popular posts from this blog