2
Answers

How to add popup window

Ask a question
piya p

piya p

10y
647
1
In my application I wnt to open popup window when click on button.The button is inside datalist
My code on button click is

ImageButton imgbtn = (ImageButton)sender;
DataListItem item = (DataListItem)imgbtn.NamingContainer;
int index = item.ItemIndex;
MyDetails details = (MyDetails)listItems[index ];
int id = details.id();

Response.Redirect("UseOfFancyBox.aspx?albumid=" + Convert.ToString(albumid)+"&albumcreate=false");

By using response.redirect it is redirecting to new page with selected index.
Instead of redirecting to next page popup window should come with selected index.
How to do this?

Answers (2)