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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 247k
  • Answers 247k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I am not sure I understand what you are asking,… May 13, 2026 at 8:36 am
  • Editorial Team
    Editorial Team added an answer JPEG is a lossy format. Every time you save a… May 13, 2026 at 8:36 am
  • Editorial Team
    Editorial Team added an answer You're looking for the Enumerable#inject method: expenses_this_month.inject(0.0) {|total, expense| total… May 13, 2026 at 8:36 am

Related Questions

Personally I really prefer Unit Testing and write them for good coverage. (let's say
I'm trying to design/implement a reputation system for a website i'm coding with ASP
I'm a long-time C++ programmer developing on Windows, and have been using Visual Studio
Recently I attended Jeffrey Richter's training courses about .NET. He mentions one strategy of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.