Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 136339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:55:58+00:00 2026-05-11T06:55:58+00:00

I work on a web-application that is written in C#/ASP.NET. The original framers of

  • 0

I work on a web-application that is written in C#/ASP.NET. The original framers of this application chose to use encrypted query strings and Viewstate to control the ‘security’ and ‘state’ of the application.

Having come from a GET/POST world before this, I don’t have a good basis for understanding why people would go through the trouble of encrypting query strings, when using POST for sensitive data (along with SSL) would achieve a similar level of security.

My question is: What are the advantages and disadvantages of using Encrypted Query Strings in ASP.NET? Is there a documented ‘best practice’ for this?


Edit: People tend to focus on Viewstate in this question. Don’t. Viewstate was mentioned only to give you a better idea to ascertain how ‘state’ was managed, since that is tangentially related to URLs. I never said Viewstate was encrypted. There really are two issues: 1) The Use of Viewstate, and 2) the Use of encrypted query strings. This question is focused on the latter. I hope that helps to clear up the focus of the question.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:55:58+00:00Added an answer on May 11, 2026 at 6:55 am

    A reason why you might do something like this is to prevent tampering with the URL to get access to data other than your own. For example, if you have the url:

    http://foo.com/user.aspx?user_id=123 

    it wouldn’t be hard for me (or anyone) to change that to:

    http://foo.com/user.aspx?user_id=124 

    If your data access strategy relies entirely on what’s in the querystring, that could allow unauthorized access to data.

    This approach does serve that purpose correctly, but a more robust way to get there is to actively check authorization within the application, and never rely exclusively on the URL for authentication and / or authorization purposes.

    Note that this has nothing to do with SSL – that ensures privacy between the browser and server, but you can be under a perfectly secure connection and still tamper with the URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

background: I work on an asp.net web application that is on a company intranet.
I have written a simple ASP.NET MVC 2 application that stores data and can
I work with a actively developed production web application that is written entirely in
I'm trying to enable a web application I've written in ASP.NET MVC2 to be
I've written a web application for internal use at work (not for the wider
Possible Duplicate: Use Visual Studio web.config transform for debugging I have an asp.net application
I am building a web based application written in ASP.NET and Flex. One of
We have a web application written in ASP.NET 3.5. In it, we access a
I have an application to be written in ASP.Net 3.5 that needs to manage
I have written an ASP.NET MVC application that allows the user to specify their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.