P
pj121
Hi,
Here's my situation:
I have an asp.net webform and it has a linkbutton on it. The
linkbutton causes a postback. So the user selects some values and then
clicks the linkbutton. Now, based on the values the user selected, a
pop up window will get displayed when they click the linkbutton.
So in the event handler for the linkbutton postback I do the following.
//Get the users selected values and show the appropriate popup
private void lnkPopup_Click(object sender, System.EventArgs e)
{
Response.Write("<SCRIPT language='javascript'> " +
"window.open(url,'previewWnd',"
+ "'Height=450;Width=600;toolbar=no;menubar=no;scrollbars=yes;status=no;resizable=yes;');"
+ " </SCRIPT>");
}
So all it does is in the event is figure out the url variable based on
user selections and then show the popup using Response.Write
This works great in IE, but it does not work in Netscape 7 or Mozzilla
- it wwill not show the popup window in these browsers.
Any ideas why?
TIA
Here's my situation:
I have an asp.net webform and it has a linkbutton on it. The
linkbutton causes a postback. So the user selects some values and then
clicks the linkbutton. Now, based on the values the user selected, a
pop up window will get displayed when they click the linkbutton.
So in the event handler for the linkbutton postback I do the following.
//Get the users selected values and show the appropriate popup
private void lnkPopup_Click(object sender, System.EventArgs e)
{
Response.Write("<SCRIPT language='javascript'> " +
"window.open(url,'previewWnd',"
+ "'Height=450;Width=600;toolbar=no;menubar=no;scrollbars=yes;status=no;resizable=yes;');"
+ " </SCRIPT>");
}
So all it does is in the event is figure out the url variable based on
user selections and then show the popup using Response.Write
This works great in IE, but it does not work in Netscape 7 or Mozzilla
- it wwill not show the popup window in these browsers.
Any ideas why?
TIA