When user will click on any image button index of that button should come.
and according to that index user will display inner data of image.
This is my code:
And code for button click is:
ImageButton imgbtn = (ImageButton)sender;
DataListItem item = (DataListItem)imgbtn.NamingContainer;
int index = item.ItemIndex;
MyDetails details = (MyDetails)listItems[index];
int id = details.getAlbumid();
Response.Redirect("Page2.aspx?id1=" + Convert.ToString(id));
Above code working properly when redirecting.
But I need When user click on any image the page 2 should come as popup page. with selected index n all.
How to make next page as popup?
}

Umesh Kumar126 reputationPosted Apr 24, 2014, 12:52 AM EDT
You can use below code to make the next page as popup
piya p79 reputationPosted Apr 24, 2014, 12:59 AM EDT
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Apr 24, 2014, 1:43 AM EDT
chk this code
ar p = window.createPopup()
var pbody = p.document.body
pbody.style.backgroundColor = "lime"
pbody.style.border = "solid black 1px"
pbody.innerHTML = "This is a pop-up! Click outside to close."
p.show(150,150,200,50,document.body)
}
Umesh Kumar126 reputationPosted Apr 29, 2014, 4:19 AM EDT