Monday, March 22, 2010

The Redirect method redirects the user to a different URL.

Syntax Response.Redirect URL Parameter Description URL Required. The URL that the user (browser) is redirected to Examples <% Response.Redirect "http://www.w3schools.com" %> ASP Write Method ________________________________________ The Write method writes a specified string to the output. Syntax Response.Write variant Parameter Description variant Required. The data to write ________________________________________ Examples Example 1 <% Response.Write "Hello World" %> Output: Hello World Example 2 <% name="John" Response.Write(name) %> Output: John Example 3 <% Response.Write("Hello World") %> Output: Hello World Try it Yourself – Examples 1)Write text with ASP- How to write text with ASP. <% response.write("Hello World!") %> 2) Format text with HTML tags in ASP- How to combine text and HTML tags with ASP. <% response.write("