Click here to Skip to main content
16,019,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to find screen resolutions in my system using ASP.Net and back end is VB but I am unable to get the solution. Can anyone help me to find the screen resolution?

regards
sasi
Posted
Updated 7-Dec-10 0:37am
v2

1 solution

Because you want to know the client screen resolution, javascript must be used.

To display the resolution on the page:
XML
<script type="text/javascript">
   document.write(screen.width+'x'+screen.height);
</script>


Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900