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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:25:25+00:00 2026-06-15T08:25:25+00:00

I’m having a very weird problem. It took me a while to track down.

  • 0

I’m having a very weird problem. It took me a while to track down. Basically I’m getting a Microsoft JScript runtime Error popup when I load data from the database into a bunch of TextBoxes.

It’s getting thrown after a Sys.Observer.RaiseEvent(this, “endRequest”, eventArgs)
I’ve seen that this error can be ignored, but after it’s thrown no postbacks inside my update panels trigger. Buttons don’t work, Listboxes with AutoPostbacks don’t fire.

So eventually I track it down to one text box. If I don’t populate it everything works fine.

The textbos was getting populated with:

    MO-SU 0700-0230        <<SEE GEN INFO>>        <<HRS T-1 ONLY>>

My first thought was there must be an escape character in there or something that’s messing with the update panel. I’m going to remove the “<<” and “>>”, but I was just wondering if anyone can explain why this occurred.

  • 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-06-15T08:25:26+00:00Added an answer on June 15, 2026 at 8:25 am

    due to << & >> this your partial post is considered as XSS attack by the server. Since you load your textboxes with string containing < and > it will be posted next time to server and since <script> tags also start/end with < >
    characters Server checks for XSS sensitive characters and denies the request.
    it is always good to post the data like this using HTTPUtility.HtmlEncode And HTTPUtility.HtmlDecode method provided with asp.net while posting data and loading data in Server controls.
    see following example:-

    string DecHtml = HttpUtility.HtmlDecode(value1);
    string EncHtml = HttpUtility.HtmlEncode(value2);
    

    Find More info about HTMLEncode the input
    If you want to get idea of XSS you should follow this

    Fortunately though, we can turn off the validation within the page directive of the ASPX:

    <%@ Page Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="webpage.aspx.cs"
    Inherits="Web.webpage" Title="webpageSite" ValidateRequest="false" %>
    

    Alternatively, request validation can be turned off across the entire site within the web.config:

    <pages validateRequest="false" />
    

    for .NET 4.0
    you can no longer turn it off at the page level whilst running in .NET 4 request validation mode, To be able to disable validation we need to ask the web.config to regress back to 2.0 validation mode:

    <httpRuntime requestValidationMode="2.0" />
    

    Frankly, this is simply not a smart idea unless there is a really good reason why you’d want to remove this safety net from every single page in the site. So the best approach IMHO is to use encoding and decoding whenever possible.
    Find more here

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

Sidebar

Related Questions

I've tracked down a weird MySQL problem to the two different ways I was
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have been unable to fix a problem with Java Unicode and encoding. The
I am currently running into a problem where an element is coming back from
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.