![]() |
|
| • All Online Courses • New Courses • QuickTips • Word Definitions • Submit a Tutorial • Links • |
|
Active Server Pages (ASP) Encoding a URLBecause a browser can misinterpret spaces and special characters in a URL (as when, for example, a query string is passed), you should use the Server.URLEncode statement to encode a URL being passed from one page to another:
In the code above, a user's entry for a favorite URL is requested from a from on another page and displayed as a hyperlink on the current page. While the text for the hyperlink appears as the user entered it, the actual hyperlink is encoded to be interpreted correctly by the browser. Mapping Server File PathsYou use the Server.MapPath statement to return the physical path for a file on the server. To return the path of the server's root directory, include a slash (/) or a backslash (\):
by Summer Doucet Find more free Internet tutorials from Learnthat.com. More Information:
Help us by rating this tutorial: [---] [--] [+] [++] [+++] [---] lowest; [+++] highest
|
|
||||||||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information