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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:41:58+00:00 2026-05-13T11:41:58+00:00

I have created a website in ASP.NET 3.5 that takes some input in text

  • 0

I have created a website in ASP.NET 3.5 that takes some input in text format and saves it in a SQL Server 2005 database.

The database field is varcahar(50).

But I can’t do it if data in text box contains special symbols like <,>,#,@,.

It generates a client script error showing security error.

For scripting I am using JavaScript.

  • 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-13T11:41:59+00:00Added an answer on May 13, 2026 at 11:41 am

    As @John Nolan writes, this most likely is the result of ASP.NET’s built in request validation.

    You have to turn off the built in validation and roll your own:

    You can turn off the validation at page level:

    <%@ Page validateRequest="false" %>
    

    or at application level (in web.config):

    <configuration>
       <system.web>
          <pages validateRequest="false" />
       </system.web>
    </configuration>
    

    Don’t forget to encode all output from your application, expecially after turning off the request validation.

    Check out this article on the subject.

    In order to protect your application you have to follow common Web application security guidelines and among others encode all your output that was generated directly or indirectly by users to avoid Cross Site Scripting (XSS). Microsoft has provided an Anti XSS library to simplify this. OWASP has an XSS prevention cheat sheet.

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

Sidebar

Related Questions

I have created a website using asp.net and I have created some resource files
I have an ASP.NET website (in C#) that takes in user data and then
I have created a website with asp.net and uses oracle connectivity with pl/sql developer.i
I've created a website with ASP.NET MVC. I have a number of static pages
Using ASP.NET and Windows Stack. Purpose: Ive got a website that takes in over
I have a ASP.Net website that interacts with Dynamic CRM. It's also uses a
I have created a website in asp.net and deployed it on IIS. It is
I previously created a website using ASP.NET that stores contact information and can produce
I am developing a website by ASP.Net. I have created settings/first-run page which I
I have a website created with ASP.NET and a web service, both using FormsAuthentication

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.