piya p

piya p

  • NA
  • 84
  • 48.2k

How to add popup window

Apr 22 2014 5:15 AM
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)