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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:17:15+00:00 2026-05-12T11:17:15+00:00

the problem is that I do have an ASP.NET TextBox in a FormView with

  • 0

the “problem” is that I do have an ASP.NET TextBox in a FormView with its Text property bound to a database table field. In some cases, there might be HTML-code combined with normal text in the database. The RequestEncoding and ResponseEncoding is set to “iso-8859-1” (whitch is latin1). There are some fields where latin1-characters and cyrillic characters may be combined. This is no problem when typing in cyrillic characters (e.g “д”). Because the RequestEncoding is set to iso-8859-1 and the charset for the browser as well, the browser will change д to “д”, which will be saved in the database. That’s what I want, but because “д” will be converted to “д” when set to an ASP.NET TextBox’s Text-property before the response output is sent to the browser, I do see “д” after saving the data.

Can anybody tell me how to stop ASP.NET from that conversion?

ALternatively: Is there a way to alter the conplete output of an ASPX site after all controls have ben rendered? – I could than replace “&#” by “&#”.

  • 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-12T11:17:16+00:00Added an answer on May 12, 2026 at 11:17 am

    I solved my problem (PortageMonkey showed me the way):

    First I created a class “IsoTextBox” which inherits from System.Web.UI.WebControls.TextBox. Because the Text property does always returns a non-encoded string, simply changing the Text properties attribute did not do the job. Instead I overrote the Render method:

    protected override void Render(HtmlTextWriter writer)
    {
        StringWriter stringWriter = new StringWriter();
        HtmlTextWriter source = new HtmlTextWriter(stringWriter);
        base.Render(source);
        writer.Write(stringWriter.ToString().Replace("&#", "&#"));
    }
    

    And than added the tagMapping in the web.config:

    <system.web>
          <pages>
            <tagMapping>
             <add mappedTagType="MyNamespace.IsoTextBox" tagType="System.Web.UI.WebControls.TextBox"/>
            </tagMapping>
          </pages>
          <globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>
    </system.web>
    

    This works very well!

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer UPDATE BY OP: this answer sucks and shouldn't be on… May 12, 2026 at 4:47 pm
  • Editorial Team
    Editorial Team added an answer Edit my bad, forget my first answer, I misunderstood the… May 12, 2026 at 4:47 pm
  • Editorial Team
    Editorial Team added an answer Some call it a DualListBox and here is some jquery… May 12, 2026 at 4:47 pm

Related Questions

I have set up an ASP.NET MVC project, and everything is working great, but
I have an ASP.net webforms app that connects to a web service, All the
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I'm writing an ASP.NET web service using C# that has a DoLookup() function. For

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.