Hello,We've got an WebTextEdit in a cell of an UltraWebGrid. The value of the field contains special characers as 'ä', 'ö' or 'ü'. When the user now edits the field, for example the 'ü' changes in 'ü'. The record also can't be updated in the database. How can we achieve that the 'ü' character is displayed correctly (if it is a correct 'ü' value in the field, the database update works). Thanks in advance for your help.
Stefan
Hi Stefan,
I tested following:
protected void Page_Load(object sender, EventArgs e){ if(!this.IsPostBack) this.UltraWebGrid1.Rows[0].Cells[0].Value = "äöü"; object txt = this.UltraWebGrid1.Rows[0].Cells[0].Value; this.TextBox1.Text += this.UltraWebGrid1.Rows[0].Cells[0].Value;}
<igtxt:WebTextEdit ID="WebTextEdit1" runat="server" BackColor="Red"></igtxt:WebTextEdit><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"> <Rows> <igtbl:UltraGridRow> <Cells> <igtbl:UltraGridCell></igtbl:UltraGridCell><igtbl:UltraGridCell></igtbl:UltraGridCell><igtbl:UltraGridCell></igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> </Rows> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn EditorControlID="WebTextEdit1" Type="Custom"></igtbl:UltraGridColumn> <igtbl:UltraGridColumn></igtbl:UltraGridColumn> <igtbl:UltraGridColumn></igtbl:UltraGridColumn> </Columns> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowUpdateDefault="Yes" RowHeightDefault="20px"> <FrameStyle Height="80px" Width="325px"></FrameStyle> </DisplayLayout></igtbl:UltraWebGrid><asp:Button ID="Button1" runat="server" Text="Button" />
When I ran page and edit value is first cell, then it appeared in editor same as in grid: 'äöü'. After that I tried to enter few special characters in WebTextEditor: Alt+137 (numpad) and Alt+129 produces: "ëü". After button click output TextBox showed special characters, but not html equivalents.
In debugger the this.UltraWebGrid1.Rows[0].Cells[0].Value also showed characters, but not html flags.
Hi Viktor,
you're example is running as long as we do not set the property 'Browser' to 'XML'. Due to the fact, that we want our grid to be AJAX enabled, 'Browser' will automatically be set to XML. What would you advise me to do?
Greetings,
I really do not know. I tested a sample with a page in simple File System WebSite of VisualStudio 2008. Sample used Infragistics35.WebUI dlls which were built from the very latest source codes.
I just tested those codes with WebSite in VisualStudio 2005. I used Infragistics2.WebUI dlls which were built around 6/6/2008. Result was the same and application ran without problems.
I tried exactly your example. I copied it 1 to 1 here from the forum on an empty ASPX-Page, added the assembly references, but unhappily it does not work. If I click into the field, the value 'äöü' is shown. When I now click on the button, the error message 'A potentially dangerous Request.Form value was detected from the client (WebTextEdit1="äöü").' is shown.
So I've tried different things:
- using Visual Studio Development Server instead of Microsoft IIS
- Changing system language from German to English (as you might have)
- Changing the browser language from German to English
What other environment property could be wrong? Or what other problem could there be?
Thanks for your help
I added to that sample
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Browser="Xml" >
but result was the same. Maybe something else in your application triggers problems.
I would suggest you to build a simple sample to reproduce bug and submit a bug report.