Server.UrlEncode Demo

This demo illustrates how Server.UrlEncode works. Simply enter a string into the text box below and then click the "Display Server.UrlEncode Output" button.

Enter a String:


Source Code:
<form method="post" id=form1 name=form1>
  <b>Enter a String:</b><br>
  <input type="text" name="txtEncode" value="<%=Request("txtEncode")%>">
  <p>
  <input type="submit" value="Display Server.UrlEncode Output" id=submit1 name=submit1>
</form>
<% If Len(Request("txtEncode")) > 0 then %>
  <p><hr><p>
  <b><u>Output of <code>Server.UrlEncode("<%=Request("txtEncode")%>")</code>:</u></b><br>
  <%=Server.UrlEncode(Request("txtEncode"))%>
<% End IF %>


[Return to the Article]