|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending form data between ASP and ASPX
Hello!
Im doing an asp.net-application where we have an external asp-form in a iframe on the mainpage. On submit, the form sends its data through method="get" to a page with a frameset (i couldnt get the data through POST). In the framsetpage, the data is receieved in the frameset and then sent to the lower frame through querystrings. The lower frame is also an external asp-page. My problem is this, the .NET-platform is using utf-8 and some other way of URL-decode things then the old platform did. So for example the swedish letter 'Ö' is in .NET URLdecode '%c3%96' and in the old asp-way '%D6'. The asp-page has no idea what '%c3%96' means so the formdata is a bit corrupted on arrival. What i was wondering is if there are any ways of convert the new way of urldecode strings to the old way? Preferably in C# since thats the site's main programming language. Sorry about the bad grammar and so on... |
|
#2
|
|||
|
|||
|
Are you using the Server.URLEncode(string) function (not sure if it's available in .net)
This function should Encode to standards.
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#3
|
|||
|
|||
|
Sure, Server.UrlEncode and UrlDecode are available in .net. But they are to no use since they dont decode the same way as they used to in vanilla asp.
Örebro -> %D6rebro -> Server.UrlDecode("%D6rebro") -> rebro ... Last edited by comus : August 19th, 2003 at 02:20 AM. |
|
#4
|
|||
|
|||
|
Silly question, but are you using the same character set, and possibly even the same font.
Having said that, I just found the following on MS Knowledge Base, it may be of help ASP.NET UrlEncode |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Sending form data between ASP and ASPX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|