Posted on 2006-04-10
I have a asp.net 2005 web project which was asp.net 2000 project before. After I converted to 2005 from 2000, somehow page is post back to rebuild the page when I click a image button to open brand new popup window to show something.
I am using clinet javascrip to open new popup window by :
<input type="Image" src="...." in aspx page.
Button clicked invoked a function at the bottom.
WHeight = window.screen.availHeight - 150;
pw = window.open(openURL, "printWindow", "width=800,height=" + WHeight + ",menubar=yes,scrollbars=yes,resizable=yes,left=0,top=60");
Popup window is working fine but parent page is trying to rebuild page again without URL QueryString value so page got error because there is no value.
How to stop posting back ?
Is it new feature in 2005? required learning curve?