Hi Friends,
I am using ASP.Net 2.0. Though what I m doing is very simple thing still I am not able to find the solution for that.
I have public string installMessage. I am verifying the clinet side .Net version and accordingly display the message to client and then start the installation by donwloading the selfextracted exe. Here I m using window.location.href and setting its value to exe file. Here I m displaying english or Japanese text based on the language selection.
Problem with different approaches:
1) I opted for using document.write('<%=serverVar%>') before setting window.location.href to exe file. But in case of Japanese string this throws error in browser as Japanese text may have some character which is calusing this. The error I m getting is "Unterminated string". Because of this I went for second solution as below.
2) I put one DIV tag and set its id and runat property. Then I m using this variable to set the value to installation information. Here when I run the aspx page the installation starts properly but I dont see any text on the page. If I comment the line "window.location.href" then I am able to get the text message otherwise it does not display the message. Though if I see the view source I can see the text message within the DIV tag. I m not getting what "window.location.href" doing that the page is not getting parsed properly and the text message is not coming.
Any clue about any of the above two solutions or method. Even I tried using ASP.Net server controls but the behaviour is same and I m not getting root cause of that.
Thanks and advance.
Jitendra
I am using ASP.Net 2.0. Though what I m doing is very simple thing still I am not able to find the solution for that.
I have public string installMessage. I am verifying the clinet side .Net version and accordingly display the message to client and then start the installation by donwloading the selfextracted exe. Here I m using window.location.href and setting its value to exe file. Here I m displaying english or Japanese text based on the language selection.
Problem with different approaches:
1) I opted for using document.write('<%=serverVar%>') before setting window.location.href to exe file. But in case of Japanese string this throws error in browser as Japanese text may have some character which is calusing this. The error I m getting is "Unterminated string". Because of this I went for second solution as below.
2) I put one DIV tag and set its id and runat property. Then I m using this variable to set the value to installation information. Here when I run the aspx page the installation starts properly but I dont see any text on the page. If I comment the line "window.location.href" then I am able to get the text message otherwise it does not display the message. Though if I see the view source I can see the text message within the DIV tag. I m not getting what "window.location.href" doing that the page is not getting parsed properly and the text message is not coming.
Any clue about any of the above two solutions or method. Even I tried using ASP.Net server controls but the behaviour is same and I m not getting root cause of that.
Thanks and advance.
Jitendra