popup window
-
i want the asp button to make its event in the behind code friest then open or redirect to open a popup widnow at the end of the event function i wanna to make the result of the server prossesing apear at a popup window but i found that the client side script happendd frist then the the event happend?????????????
-
i want the asp button to make its event in the behind code friest then open or redirect to open a popup widnow at the end of the event function i wanna to make the result of the server prossesing apear at a popup window but i found that the client side script happendd frist then the the event happend?????????????
Insert the following into the HTML of your ASPX page right before the form tag. Modify the settings however you like of course. This assumes your using javascript. function popup(text, name) { settings= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=Yes,"+ "resizable=Yes,width=625,height=320;" MyNewWindow = open(text, name, settings); } To call the function from your code behind page use the following. It is a vb example. RegisterStartupScript("Key", " popup('/SomeForm.aspx', 'FormName'); ")
-
Insert the following into the HTML of your ASPX page right before the form tag. Modify the settings however you like of course. This assumes your using javascript. function popup(text, name) { settings= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=Yes,"+ "resizable=Yes,width=625,height=320;" MyNewWindow = open(text, name, settings); } To call the function from your code behind page use the following. It is a vb example. RegisterStartupScript("Key", " popup('/SomeForm.aspx', 'FormName'); ")