Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unreadable QueryString

Reply
Thread Tools

Unreadable QueryString

 
 
Surajit Laha
Guest
Posts: n/a
 
      05-04-2004
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
 
Reply With Quote
 
 
 
 
avnrao
Guest
Posts: n/a
 
      05-04-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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



 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VyYWppdCBMYWhh?=
Guest
Posts: n/a
 
      05-04-2004
Could you please suggest some encryption methodology

A sample script block would really be helpful

regards

 
Reply With Quote
 
avnrao
Guest
Posts: n/a
 
      05-04-2004
check this thread.. it has code to encrypt query string.
http://www.dotnet247.com/247referenc...30/154814.aspx

Av.
"Surajit Laha" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Could you please suggest some encryption methodology.
>
> A sample script block would really be helpful.
>
> regards,
>



 
Reply With Quote
 
David Jessee
Guest
Posts: n/a
 
      05-04-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
InputStream unreadable atkedzierski@gmail.com Java 3 01-11-2006 05:35 PM
Serializing beans. Change in code makes old files unreadable. Andoni Java 2 08-19-2005 09:21 PM
Re: Unreadable "HTML" Toby A Inkster HTML 1 08-19-2003 02:56 AM



Advertisments