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 293717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:18:04+00:00 2026-05-12T06:18:04+00:00

Personally, I try and write secure ASP.NET code. However, I have become quite paranoid

  • 0

Personally, I try and write secure ASP.NET code. However, I have become quite paranoid about the code I write, as I used to work for a Registrar (high fraud targets). Are there any ASP.NET functions I should look at with extreme scrutiny (other than SQL access – I know enough not to do dynamic SQL).

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-05-12T06:18:04+00:00Added an answer on May 12, 2026 at 6:18 am

    This is an excellent MSDN article: Security Practices: ASP.NET 2.0 Security Practices at a Glance.

    Excerpt:

    How to prevent cross site scripting

    Validate input and encode output.
    Constrain input by validating it for
    type, length, format, and range. Use
    the HttpUtility.HtmlEncode method to
    encode output if it contains input
    from the user, such as input from form
    fields, query strings, and cookies or
    from other sources, such as databases.
    Never just echo input back to the user
    without validating and/or encoding the
    data. The following example shows how
    to encode a form field.

    Response.Write(HttpUtility.HtmlEncode(Request.Form["name"]));
    

    If you return URL strings that contain
    input to the client, use the
    HttpUtility.UrlEncode method to encode
    these URL strings, as shown here.

    Response.Write(HttpUtility.UrlEncode(urlString));
    

    If you have pages that need to accept
    a range of HTML elements, such as
    through some kind of rich text input
    field, you must disable ASP.NET
    request validation for the page.

    Turn On Custom Errors To Keep Errors Private

    <customErrors mode="On" defaultRedirect="YourErrorPage.htm" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've personally always used some type of external application for my SCM work; these
I'm using ASP.NET MVC 1.0 and I try to create a personal blog! I
Let's say you have a piece of code like: resource = allocateResource(); try {
I have written the following code to write a file on my local file
I personally don't use FxCop yet. We want to work out the unit testing
I personally used Mercurial and Subversion in a limited way and I just can't
When have you ever personally come upon the halting problem in the field? This
I have re-factored one of the method as shown below ,personally I think it
I have a slowly growing collection of about 3 million tagged documents and I
Just as a personal experiment, in order to try to learn better about programming

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.