encode and decode querystring in asp.net [Resolved]

Posted by Gopinath under ASP.NET on 3/22/2012 | Points: 10 | Views : 4188 | Status : [Member] | Replies : 4
Hi,
I want to encode and decode the URL using querystring.how can i do this.

C.Gopinath


Responses

Posted by: Sabarimahesh on: 3/22/2012 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi Use This Link
http://forums.asp.net/t/1261071.aspx/1

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Gopinath, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/22/2012 [Member] Silver | Points: 25

Up
0
Down
Hi Sabari Mahesh,
Nice Link

Thanks,
Sanjay

Gopinath, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 3/22/2012 [Member] Bronze | Points: 25

Up
0
Down
hi Sksamantaray

tHANKS mAN

DotNetFunda Cheeers!!!!!!!

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Gopinath, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Meera4.Net on: 3/22/2012 [Member] Starter | Points: 25

Up
0
Down
public string encryptQueryString(string strQueryString) {
ExtractAndSerialize.Encryption64 oES =
new ExtractAndSerialize.Encryption64();
return oES.Encrypt(strQueryString,"!#$a54?3");
}

public string decryptQueryString(string strQueryString) {
ExtractAndSerialize.Encryption64 oES =
new ExtractAndSerialize.Encryption64();
return oES.Decrypt(strQueryString,"!#$a54?3");

string strValues = "search term";
string strURL = "http://yoursite.com?search="
+ encryptQueryString(strValues);
Response.Redirect(strURL);
}

meera mohiddin

Gopinath, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response