Article ID: 312063 - Last Review: August 28, 2007 - Revision: 3.5 HOW TO: Use Response.Redirect in ASP.NET with Visual Basic .NETThis article was previously published under Q312063 On This PageSUMMARY
This article demonstrates how to use the Redirect method of the HttpResponse class in ASP.NET applications to redirect a user to another URL. RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that you need:
Create an ASP.NET Web Application Using Visual Basic .NETThe following steps demonstrate how to create a new ASP.NET Web Application project named Redirector.
Description of the HttpResponse.Redirect MethodThe HttpResponse class implements two overloaded versions of the Redirect method.
Create a Running SampleThis sample demonstrates how to implement the Redirect method in the Page_Load event of a code-behind page. This code implements the first overloaded version that is listed in the previous section.
Troubleshooting
REFERENCES
For more information, refer to the following topics in the Microsoft .NET Framework Software Development Kit (SDK) documentation:
HttpResponse Class
The ASP.NET Developer Center
(http://msdn2.microsoft.com/en-us/asp.net/default.aspx)
is a good source for articles, headlines, and other information related to ASP.NET.http://msdn2.microsoft.com/en-us/library/system.web.httpresponse(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.web.httpresponse(vs.71).aspx) HttpResponse.Redirect Method http://msdn2.microsoft.com/en-us/library/system.web.httpresponse.redirect(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.web.httpresponse.redirect(vs.71).aspx) HttpResponse.BufferOutput Property http://msdn2.microsoft.com/en-us/library/system.web.httpresponse.bufferoutput(vs.71).aspx (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclassbufferoutputtopic.asp) For tutorials on the .NET Framework and Visual Studio .NET, refer to the following Microsoft Web site: http://www.codeplex.com
(http://www.codeplex.com)
| Article Translations
|
Back to the top
