Javascript and c#
-
Is there any possibility to enable scripting in internetexplorer using c#
Thanks In Advance
-
Is there any possibility to enable scripting in internetexplorer using c#
Thanks In Advance
You mean via ASP.NET, or when you have a client app running on the target machine ? If the latter, then perhaps, but I doubt it. If the former, then, no way. Your C# code is never going to run on the client.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
You mean via ASP.NET, or when you have a client app running on the target machine ? If the latter, then perhaps, but I doubt it. If the former, then, no way. Your C# code is never going to run on the client.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?
Thanks In Advance
-
Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?
Thanks In Advance
Please provide me any possible solution.....
Thanks in Advance
-
Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?
Thanks In Advance
I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.
-
Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like strURI = window.open('test.aspx',null,'location=yes',null) "imagebutton.attrubutes.add("OnClick",strURI)", if the java script is disabled in the browser how to achieve this?
Thanks In Advance
The best way is to build your link the normal way, with a button or anchor tag.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.
Thank you so much for the info.Can you just please give me any links for the java script sites.
Thanks in advance
-
I am not usig ASP.NET but from my experience with php I can say this: You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links. The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on. Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.
Thank you so much for the info.Can you just please give me any links for the java script sites.
Thanks in advance
-
Thank you so much for the info.Can you just please give me any links for the java script sites.
Thanks in advance
For this purpose you do not need this forum. Google will do.