Thursday, April 2, 2009

Open New pop window

hay guys nothing to new...use java script to open new pop up window on image button
click or any other window... just add attribute like ...
    imgbtn.Attributes.Add("onclick", "javascript:window.open('" + Text.Replace(" ", "_") + "/LargeImage.aspx?data=" + str + "','LargeImage','width=500,height=500,scrollbars=yes'); return false;");   
    //here imgbtn is my image control name

No comments:

Post a Comment