Screen Resolution

Results 1 to 2 of 2

Thread: Screen Resolution

  1. #1
    Join Date
    Dec 1969

    Default Screen Resolution

    Hi I want to check the users resolution and then assign diff values according. How can I do this in ASP? I am really new to this so some sample code would help.<BR><BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Screen Resolution

    You would have to take the screen.width and screen.height JavaScript variables and post them to an ASP page.<BR>====================<BR><BR>&#060;!-- Initial Page (html)<BR>// ------------ --&#062;<BR>&#060;script&#062;<BR>document.location. href = "some.asp?width=" + screen.width + "&height=" + screen.height;<BR>&#060;/script&#062;<BR><BR>===============<BR><BR>&#039; ASP Page<BR>&#039; --------<BR>Dim intWidth, intHeight<BR>intWidth = Request.QueryString("width")<BR>intHeight = Request.QueryString("height")<BR><BR>============= =======<BR><BR>Get it?<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts