I have to create a URL for a link on my webpage based on end user’s available screen size like rdp://myworkdesktop.comp.com?resolution=1600×900
I get the computer name from user profile in AD so it will different for every user and is dynamically generated by the backend. Is there any way I can form a url like that in MVC3 view with half of the info coming from server and another half on the client side?
I am new to web programming.
Any pointers or help would be greatly appreciated.
You can try
window.screen.widthandwindow.screen.height, though I’m not sure about compatibility.