• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1271
  • Last Modified:

Open asp page from aspx page

hi all,

I have to open ASP pages from ASP.NET. I used below code in Page_LOAD event. But, it did not open ASP pages from ASP.NET.


 Response.Write("window.open('pagemain.asp','RYANWINDOW','resizable=yes,scrollbars=no,width=0,height=0,status=yes,menubar=0,toolbar=0,left=0,top=0');")
 Response.Write("window.location.href = 'page1.asp';")

Thanks
0
genesiscircle
Asked:
genesiscircle
1 Solution
 
bigphuckinglizardCommented:
ASP.NET 1.x:       Page.RegisterStartupScript("openwindow", "<script>window.open('http://www.google.com');</script>");
ASP.NET 2.0:        Page.ClientScript.RegisterClientScriptBlock(this.GetType,"openwindow", "<script>window.open('http://www.google.com');</script>");
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now