url encoding [modified]
-
i m devloping web application. i want to encode to url. that means user cannot access any page directly by url.how to encode the url.
modified on Tuesday, January 01, 2008 5:39:28 AM
-
i m devloping web application. i want to encode to url. that means user cannot access any page directly by url.how to encode the url.
modified on Tuesday, January 01, 2008 5:39:28 AM
<%@ Page Language="C#" %> <html> <head> <title>Encoding URL Strings</title> <script runat="server"> void UrlPathEncode() { string StrToEncode; string StrToReturn; StrToEncode = "UrlPathEncode.aspx? Arg = foo"; StrToReturn = Server.UrlPathEncode(StrToEncode); Response.Write("<a href=\"" + StrToReturn + "\">" + StrToReturn + "</a>"); } </script> </head> <body> <% UrlPathEncode(); %> </body> </html>
Usman Munier Xavor Corporation Pakistan
-
i m devloping web application. i want to encode to url. that means user cannot access any page directly by url.how to encode the url.
modified on Tuesday, January 01, 2008 5:39:28 AM
Encoding the URL and making the page not accessible by the user directly are different things. Do you want to do URL encryption? or How do you want the user to access indirectly?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)