asp.net - Send parameter with accentuation c# -


i have page , in send event, need pass parameter value "name". name have accentuation and, in example name "raúl lozada" sends "raúl lozada" procedure parameter. how can correct it? in html page, loads correctly!

<asp:boundfield datafield="user" headertext="user" />      sqlparameter myparam4 = ocommand.parameters.add("@user", sqldbtype.nchar);             myparam4.value = row.cells[0].text; 

you need html unescape string, before sending db:

use httputility.htmldecode:

myparam4.value = httputility.htmldecode(row.cells[0].text); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -