![]() |
| ||
| Passing unicode query string to popup window using window.open method Hi, I am trying to pass query string from one page to popup window as follow: Dim popupScript As String = "window.open('cFinder.aspx?cName=" & c_TextBox.Text & "','', 'width=420,height=200,menubar=no,scrollbars=yes');"The popup window comes up very well only if the text I typed is in english. otherwise the popup window comes up empty and the string I see in the "view source" option (in IE) is "%ufffd%%ufffd...." I will need to query some unicode characters. Any idea? Thanks. |
| ||
| Re: Passing unicode query string to popup window using window.open method IE - User interface uses UTF-8 character set. |
| ||
| Re: Passing unicode query string to popup window using window.open method I understand but when I redirect the query response to anotherpage.aspx instead of "popup" (window.open) it works fine and the string is as I typed it. I am trying to understand what is the diff. between popup and standard page in terms of encoding. Anything I missing in my code? |
| ||
| Re: Passing unicode query string to popup window using window.open method For those who needs the same solution: I found a VB function that "convert" 'response.redirect' to popup window... Public Sub Redirect(ByVal url As String, ByVal target As String, ByVal windowFeatures As String) And in the btnSubmit sub: Session.Item("ObjToRedirect") = TextBox1.TextOf course, you'll have to translate the session item on NextPage.aspx if you need to make a query. Enjoy... |
| All times are GMT -4. The time now is 2:37 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC