how querstring value invisible send to another page

Posted by Sagarp under ASP.NET on 1/15/2010 | Views : 3506 | Status : [Member] | Replies : 12
Hi




how can invisible value in query string to send another .plz reply



Thnaks
sagarP

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/



Responses

Posted by: Lakhangarg on: 1/15/2010 [Member] [Moderator] Silver

Up
0
Down
Hi Sagar-

Query String value can't be send to another page without showing it.
what we can do is we can encrypt your data and then can send it through query string and on another page we can decrypt this value.

or we can save the value in Session varibale and get that value from session variable instead of query string.


Thanks
Lakhan Pal Garg

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

Posted by: Vuyiswamb on: 1/15/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Lakhangarg is Right use the Session to do this


Page 1

Session["Var"]  = 1; 




Page 2


int Varr = Convert.ToInt32(Session["Var"]);


Thank you for posting at Dotnetfunda


Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
OK.

but how can encrypt query string value

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Vuyiswamb on: 1/15/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Then this is how you do it

http://nayyeri.net/how-to-encrypt-query-string-parameters-in-asp-net


Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
Hi Friend


Such nice and good link u have send.

Thanks
sagarP

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Vuyiswamb on: 1/15/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Am Glad to Help

Thank you for posting at Dotnetfunda


Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Nishithraj on: 1/15/2010 [Member] Bronze

Up
0
Down
I think you can try with URL Rewriting.

This link will explain you the tricks with URL Rewriting.

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

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

Posted by: Puneet20884 on: 1/15/2010 [Member] Bronze

Up
0
Down
Exactly ..... Encrypting it, Sessions , Cookies, ControlStates etc. or other ways along with it you can also check the URL Rewriting option as well.

Best Regards,
Puneet Sharma - Infosys
Pune, India

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
thx.

next send and link or code,don't suggestion.i know that u can write all the lines.

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Puneet20884 on: 1/15/2010 [Member] Bronze

Up
0
Down
of cos,

you can follow the following

http://msdn.microsoft.com/en-us/library/ms972974.aspx

and

http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/

these will let you know an interseting way out !!



Best Regards,
Puneet Sharma - Infosys
Pune, India

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
thx friend u know abt sharpoint i have 1 problem

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Posted by: Nishithraj on: 1/15/2010 [Member] Bronze

Up
0
Down
What is the issue you are facing in sharepoint??

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

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

Login to post response