B
bucrepus
I know response.redirect doesn't open a new page. I have read many posts on
how to fix this but I can't get the first one to work. Please help.. I have
tried on 2 diff dev machines with no success (VS 2003) ASP.NET Web appl.
with Java Script setting in design properties.
I created a simple app with one button, under this button I have tried:
just to test the command Page.RegisterStartupScript I tried:
Page.RegisterStartupScript("TEST", "<script>alert(TEST MESSAGE');</script>")
pops up a 'message box'
WORKS GREAT!
BUT THE OPEN NEW WINDOW THING, I HAVE TRIED
Dim URL As String
URL = "a url string", tried several different public sites as well
as my own
Response.Write("<script language=JavaScript>window.open('" & URL &
"')</script>")
Exit Sub
DID NOTHING BUT FLASH, STAYED AT SAME PAGE..
TRIED:
Dim strURL As String
strURL = "http://www.microsoft.com/"
' Open your URL in a new window
Response.Write("<script>window.open('" & strURL & "',null,
'toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=575px,height=400px
')</script>")
Exit Sub
SAME RESULTS
TRIED:
RegisterStartupScript("OpenWindowScript", "<script
language=""javascript"">window.open(""www.MSN.com"");</script>")
SAME RESULTS
TRIED:
Page.RegisterStartupScript("openwin",
"<script>window.open('www.microsoft.com');</script>")
SAME RESULTS
HELP!
How can I get something to work? Thnaks greatly.. Buc..
how to fix this but I can't get the first one to work. Please help.. I have
tried on 2 diff dev machines with no success (VS 2003) ASP.NET Web appl.
with Java Script setting in design properties.
I created a simple app with one button, under this button I have tried:
just to test the command Page.RegisterStartupScript I tried:
Page.RegisterStartupScript("TEST", "<script>alert(TEST MESSAGE');</script>")
pops up a 'message box'
WORKS GREAT!
BUT THE OPEN NEW WINDOW THING, I HAVE TRIED
Dim URL As String
URL = "a url string", tried several different public sites as well
as my own
Response.Write("<script language=JavaScript>window.open('" & URL &
"')</script>")
Exit Sub
DID NOTHING BUT FLASH, STAYED AT SAME PAGE..
TRIED:
Dim strURL As String
strURL = "http://www.microsoft.com/"
' Open your URL in a new window
Response.Write("<script>window.open('" & strURL & "',null,
'toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=575px,height=400px
')</script>")
Exit Sub
SAME RESULTS
TRIED:
RegisterStartupScript("OpenWindowScript", "<script
language=""javascript"">window.open(""www.MSN.com"");</script>")
SAME RESULTS
TRIED:
Page.RegisterStartupScript("openwin",
"<script>window.open('www.microsoft.com');</script>")
SAME RESULTS
HELP!
How can I get something to work? Thnaks greatly.. Buc..