Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I click a button from an .aspx page, a child window is created with a pdf. However, When this happens, the parent window refreshes due to postback. How can I prevent this postback when the chid window is gets created.

The code is totally in .cs page and there is no JavaScript involved. I would like to achieve the above without using JavaScript. Is there a way ?
Posted
Comments
Karthik_Mahalingam 29-Jan-14 1:51am    
post your code..
Nick Fisher (Consultant) 29-Jan-14 4:09am    
It depends on how you're creating the child window. You would normally need to either post back to the server OR to use Javascript to open the window. But seeing as you don't want to do either of these things, it's difficult to give any suggestion unless you post your code so we can understand what you're trying to achieve.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900