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 an ASP.NET website that generates documents. Each document takes a while to
In a ASP.NET C# website I have an input that uploads a file to
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 have created a ASP.NET website and deploy it in IIS 7 (in place
I have created a asp.net website and i added tooltip to a button by
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 successfully created an ASP.net website to make calls to a Soap Web
I am using visual studio 2010 Express. I have created a website in asp.net.It

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.