<%@ 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="UrlEncode.aspx" method="POST" runat="server">
--%>
<form id="form1" method="POST" runat="server">
<h3>Name:</h3>
<input type="text" id="name" runat="server">
<input type="submit" runat="server">
</form>
</body>
</html>
|