Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have on apsx page and on button click i am opened one modelpop through ShowModelDialouge in java script but my problem is my aspx page getting post back when that model pop is opening. Here is javascript code:

JavaScript
function showPopup(id,sid) 
{
    var str = "AddSalesOrderDetials.aspx?value=" + id + "&sid=" + sid;
    window.showModalDialog(str, "", 
                           "dialogHeight:175px;dialogWidth:300px;center:yes;", 
                           "Viewstate=false");

}
Posted
Updated 9-Dec-10 23:42pm
v2
Comments
#realJSOP 10-Dec-10 5:43am    
Moved title into message, shortened title, and reformatted code snippet
Abdul Quader Mamun 10-Dec-10 5:44am    
I have such this type of problem. I have solved it other way.

1 solution

On your button, right click and look at Properties

Set 'AutoPostBack' to false
 
Share this answer
 

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