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 KumarPosted Apr 29, 2014, 8:19 AM
Lakshmanan Sethu SankaranarayanPosted Apr 24, 2014, 5:43 AM
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)
}
piya pPosted Apr 24, 2014, 4:59 AM
Umesh KumarPosted Apr 24, 2014, 4:52 AM
You can use below code to make the next page as popup