Last post Jul 29, 2013 04:03 AM by smiling4ever
Jul 24, 2013 09:50 AM|tunstals|LINK
I've created a page that has a multiline asp:Textbox and a save button.
When I set my browser (IE9) to Chinese (CH-ZN) locale, input some English or Chinese characters, and then press Save, the codebehind shows that TextBox.Text is set to string.Empty.
If I change back to English or French, German, Spanish then the textbox works as expected.
I've looked all over for information about this issue and made changes to HTML headers and web.config, but no joy.
In the page that hosts the textbox I have:
<%@ Page Title="Main screen" Language="C#" UICulture="Auto" culture="auto" Theme="Default" MasterPageFile="~/MasterPages/Standard.Master" AutoEventWireup="True" CodeBehind="Main.aspx.cs" Inherits="CHAPS.WebApp.Main" meta:resourcekey="PageResource1" %>
In my master page's html I have the doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
additionally in master page's html I have in the <head runat="server"> section:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
In my web.config I have the following under system.web:
In IE9 the textbox renders as a textarea. I'm using ASP.NET 3.5
Can anyone help?
Jul 25, 2013 08:26 AM|smiling4ever|LINK
Could you try to save your aspx page with UTF-8 with signature ?
Jul 26, 2013 05:11 AM|tunstals|LINK
Thanks for your reply.
I have checked, and my pages are already saved as UTF-8 with signature, codepage 65001.
Would I have to save any .ASCX files as UTF-8 w/ signature as well?
Jul 29, 2013 03:59 AM|tunstals|LINK
Smiling4Ever, just saved ASPX pages again, and now it's working as expected.
Thank you very much for your help - I'd buy you a beer if I could!!!
Jul 29, 2013 04:03 AM|smiling4ever|LINK
Glad to see your issue resolved,
Thanks for the invitiation, but i don't drink