c# - asp.net 4.5 TextBox HTML Encoding -


i have aspx cotains code:

<asp:formview runat="server"                   id="veranstaltungdetailform"                   itemtype="budgetverwaltung.models.veranstaltung"                   datakeynames="veranstaltungsid"                   selectmethod="getitem"                   insertmethod="insertitem"                   updatemethod="updateitem"                   ondatabinding="veranstaltungdetailform_databinding"                   ondatabound="veranstaltungdetailform_databound"                   onitemcommand="veranstaltungdetailform_itemcommand">          <itemtemplate>             <fieldset>                 <legend><%#: item.bezeichnung %> (<%#: item.veranstaltungsnummer %>)</legend>                 <table class="content-table">                     <tr>                         <td class="dark-table"><span style="font-weight:bold;">beschreibung:</span></td>                         <td class="light-table"><%#: item.beschreibung %></td>                         <td class="dark-table"><span style="font-weight:bold;">ort:</span></td>                         <td class="light-table"><%# item.ort %></td>                     </tr>                 </table>             </fieldset>         </itemtemplate>          <insertitemtemplate>             <fieldset>                 <legend>neue veranstaltung anlegen</legend>                   <table class="content-table">                     <tr>                         <td class="dark-table"><span style="font-weight:bold;">beschreibung:</span></td>                         <td class="light-table"><asp:textbox runat="server" id="insert_beschreibung" text="<%#: binditem.beschreibung %>"></asp:textbox></td>                         <td class="dark-table"><span style="font-weight:bold;">ort:</span></td>                         <td class="light-table"><asp:textbox runat="server" id="insert_ort" text="<%#: binditem.ort %>"></asp:textbox></td>                     </tr>                 </table>             </fieldset>         </insertitemtemplate>          <edititemtemplate>             <fieldset>                 <legend>veranstaltung bearbeiten "<%#: item.bezeichnung %>"</legend>                 <dl>                   <table class="content-table">                     <tr>                         <td class="dark-table"><span style="font-weight:bold;">beschreibung:</span></td>                         <td class="light-table"><asp:textbox runat="server" id="edit_beschreibung"  text="<%# binditem.beschreibung %>"></asp:textbox></td>                         <td class="dark-table"><span style="font-weight:bold;">ort:</span></td>                         <td class="light-table"><asp:textbox runat="server" id="edit_ort" text="<%#: binditem.ort %>"></asp:textbox></td>                     </tr>                 </table>                 </dl>             </fieldset>         </edititemtemplate>     </asp:formview> 

the data managed entity framework. in cases, working fine. if enter umlaute (ÄÖÜ äöü) run problems. when enter them , save, fine. data appears correctly in database. when view data, e.g. , fine. when try edit data in data gets html-encoded ÄÖÜ , can't save again. i'm no expert @ asp.net i'm @ loss right now. mistake? help.

try here : string encoding - german umlaut


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -