Click here to Skip to main content
15,905,915 members

Comments by Ibrahim.Poonawala (Top 3 by date)

Ibrahim.Poonawala 1-Feb-11 9:34am View    
this works.. i have checked...U need to add this event

protected void rptuser_ItemCreated(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
ImageButton _myButton = (ImageButton)e.Item.FindControl("updbtn");
_myButton.Attributes.Add("onClick", "window.open('About.aspx','','width=700,height=700');return false;");
}
}
Ibrahim.Poonawala 1-Feb-11 8:25am View    
on the first click your upd.OnClientClick = "return PopUp()"; is getting registered and then on second click it actually gets popup. so you need to register the click event on page load.

updbtn.Attributes.Add("onClick", "window.open('EditUser.aspx','','width=700,height=700');return false;");
Ibrahim.Poonawala 1-Feb-11 8:22am View    
Deleted
on the first click your upd.OnClientClick = "return PopUp()"; is getting registered and then on second click it actually gets popup. so you need to register the click event on page load.

opener.Attributes.Add("onClick", "window.open('popup.aspx','','width=700,height=700');return false;");