<%@ Page Language="VB" %>
<html>
<head>
<title>URLEncoding</title>
<script runat="server">
Sub Page_Load()
If IsPostBack
Response.Write(Server.UrlEncode(Request.Form("name")))
End If
End Sub
</script>
</head>
<body>
<form id="form1" action="Default.aspx" method="POST" runat="server">
<h3>Name:</h3>
<input type="text" id="name" runat="server">
<input type="submit" runat="server">
</form>
</body>
</html>
|