Solved

Sending foreign characters to a modalDialog using 'window.showModalDialog'

Posted on 2008-06-15
4
499 Views
Last Modified: 2008-07-03
Hello,

I am writing a c# asp.net application in which i want to open a modal dialog and sent parameters to it.

var retVal = window.showModalDialog('EntitiesList.aspx?name=" + name, window, 'dialogWidth:220px;dialogHeight:200px,top=300,left=400,');

When my 'name' parameter contains foreign characters (for example, Montó or María), the value received at the destination page has a square (box) instead of the special letter.

How can i send the special characters to my destination page?

Thank you
0
Comment
Question by:Relegence
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Meritor
Comment Utility
Try following
var retVal = window.showModalDialog('EntitiesList.aspx?name=" + escape(name), window, 'dialogWidth:220px;dialogHeight:200px,top=300,left=400,');

Open in new window

0
 

Author Comment

by:Relegence
Comment Utility
I tried 'escape' but it didn't help.
When i debug the application i see that i send the correct value, but in my cs page it is not received properly.

I am using:

name = Request["name"];
0
 
LVL 4

Accepted Solution

by:
Meritor earned 400 total points
Comment Utility
I am not familier with ASP,
but try to set proper endocing while sending response for that,
try using ISO-8859-1 or ISO-8859-2 instead of UTF-8 (the defult one, I guess).
0
 

Author Comment

by:Relegence
Comment Utility
Thanks a lot,
I used ISO-8859-1 and it works!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
This article discusses how to create an extensible mechanism for linked drop downs.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now