I created a site that requires me to do certain things depending on the screen resolution. Unfortunately I could not find a way to do so with Javascript because I need to assign values to my ASP variables.
You cant with ASP, either use javascript at the client side or run a page that resubmits itself passing the javascript variables back so you have them at the server side- but thats a very messy way of doing it.
ASP is a server side scripting language i.e. it knows nothing about the client. You can use Javascript client side to get info about the browser, and resolution etc. The two dont work together (well actually you can pass ASP variables in Javascript). You would have to visit the client get the info and then go back to the server before you could use variables from the client side.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.