By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,985 Members | 2,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,985 IT Pros & Developers. It's quick & easy.

Unreadable QueryString

P: n/a
Hi,

I want to encrypt my query string values when I pass it to the next page.

What can I do for that?

I also want to throw exception, if the user manually changes it!
-surajIT
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
you can encrypt the query string value and append the crypted value to the
URL.
you can use global.asax methods to decrypt it and redirect to the required
page with proper URL.

Av.

"Surajit Laha" <s_****@rediffmail.com> wrote in message
news:ba**************************@posting.google.c om...
Hi,

I want to encrypt my query string values when I pass it to the next page.

What can I do for that?

I also want to throw exception, if the user manually changes it!
-surajIT

Nov 18 '05 #2

P: n/a
Could you please suggest some encryption methodology

A sample script block would really be helpful

regards

Nov 18 '05 #3

P: n/a
check this thread.. it has code to encrypt query string.
http://www.dotnet247.com/247referenc...30/154814.aspx

Av.
"Surajit Laha" <an*******@discussions.microsoft.com> wrote in message
news:75**********************************@microsof t.com...
Could you please suggest some encryption methodology.

A sample script block would really be helpful.

regards,

Nov 18 '05 #4

P: n/a
I've run into this problem a lot and I've gotten to the point that I dont
use querystrings for passing key values anymore, unless I have to pass them
outside of a given AppDomain.

There might be other options you might want to look at as well. For
Example:
(1) You can set a session variable for the value you're wanting to pass, so
the user never sees it.
(2) You can implement a property in the FirstPage called, Let's say
SelectedItem, and then do a Server.Transfer to the second page. On the
second page, you can access the value need by saying:
ctype(Context.Handler,FirstPage).SelectedItem

With both of these, you dont have to worry about the user modifying the
querystring because there isn't one.

"Surajit Laha" <s_****@rediffmail.com> wrote in message
news:ba**************************@posting.google.c om...
Hi,

I want to encrypt my query string values when I pass it to the next page.

What can I do for that?

I also want to throw exception, if the user manually changes it!
-surajIT

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.