Hi,

I want to redirect from global.aspx to another page. How can I achieve this. I tried with following steps, but no effects on this.

1) Response.Redirect("~/login.aspx")
2) Me.Context.Response.Write("window.parent.location.href='login.aspx';")
3) Context.Response.Redirect((DirectCast(Context.Handler,System.Web.UI.Control)).ResolveUrl("~/logout.aspx"))

Do you mean global.asax? If so, you can do URL rewriting inside the Application_BeginRequest function. Look up on the Microsoft MSDN site the function Context.RewritePath.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.