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")%>">
  <input type="submit" value="Display Server.UrlEncode Output" id=submit1 name=submit1>
<% If Len(Request("txtEncode")) > 0 then %>
  <b><u>Output of <code>Server.UrlEncode("<%=Request("txtEncode")%>")</code>:</u></b><br>
<% End IF %>

[Return to the Article]