Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Dear Friends,

Here i want to Encrypt the Url in my Web Application,Can any One Help about this Concept.



Regards,

Anilkumar.
Posted
Comments
Keith Barrow 29-Aug-11 5:32am    
My advice is don't. You can't encrypt the whole url anyway, the thing has to land at the expected server at least. The main reason not to is that it isn't human friendly and it will lower your SEO. Why do you want to do this - do you want to encrypt url parameters?
[no name] 29-Aug-11 6:53am    
Did you mean "encode the url"?
Anil Honey 206 1-Nov-11 1:45am    
Through Parameter for Encryption i have written one class file.Its Works Fine where Response.Redirect("") another page.But if i want to Redirect with in the page in pageload.But my Encryption class file it check everything in my application.In page Respose.Redirect("samepage.aspx").The page is hanging.Iam encrypting only parameter
sample code:

try
{
if (!IsPostBack)
{


Form.Action = QuertStringModule.Encrypt(Request.Url.ToString());
Response.Redirect("ManageUser.aspx?ID=1");

}
}
catch (Exception ex)
{
ex.ToString();
}

But the page is hanging.butif i redirect the page its working fine.

Hi,

As Shameel suggested, are you talking about HttpServerUtility.UrlEncode Method

Hope it helps.
 
Share this answer
 
using c
C++
<pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="HTML">
 
Share this answer
 
Comments
SoMad 25-Feb-13 4:41am    
I assume you did not mean to post this as an answer. I am not going to downvote it, but please modify it either by posting something useful or clearing it out. I know you cannot delete it right now because the delete button is not available.

Soren Madsen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900