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());
}

popup_Load
{
if(Request.QueryString["_id"]!=null)
string _id=Request.QueryString["_id"];
}
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());
}
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"];
}
asp.net example codes for program writers
ReplyDeletesample program Display the browser version