Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Passing special characters from html form to aspx application

Reply
Thread Tools

Passing special characters from html form to aspx application

 
 
hoenes1
Guest
Posts: n/a
 
      06-08-2005
Hi all,

I have a standard html form containing several textboxes. Since this
is a german application, the boxes are likely to contain special
characters like , , , etc. The form is passed to the asp.net
application via action="FormHandler.aspx" method="post". Evaluating
the values in Request.Form.GetValues(key)[0] yields the content of the
textboxes omitting the special characters, for example typing
"Rdiger" (7 chars) in the form results in "Rdiger" (6 chars) in the
aspx application. An interesting effect is the following: When I use
method="get" instead and check Request.Url.ToString(), the correct
special chars are in the url
(http://.../FormHandler.aspx?Name=Rdiger?...). The problem is that I
have to use method="post". Changing encType to "multipart/form-data"
or "text/plain" or "application/x-www-form-urlencoded" doesn't change
the behaviour. Any ideas? I guess this should be possible with
asp.net.

Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting utf-8 characters -special characters majna Javascript 4 09-19-2007 01:53 PM
Remove only special characters and junk characters from a file rvino Perl 0 08-14-2007 07:23 AM
Re: Meta-Characters, Special Characters xah@xahlee.org Java 2 05-31-2007 09:25 AM
How to convert HTML special characters to the real characters with a Java script Stefan Mueller HTML 3 07-23-2006 10:09 PM
Posting special characters in html form Luc Feys Java 1 10-22-2003 07:53 AM



Advertisments