URL Encoding (VB.net) : URI URL « Request « ASP.Net






URL Encoding (VB.net)

<%@ 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>
           
       








Related examples in the same category

1.Url Referrer: your path (VB.net)
2.Url Referrer: scheme (VB.net)
3.Uri for current page (VB.net)