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:
myparam4.value = httputility.htmldecode(row.cells[0].text);
Comments
Post a Comment