Solved

Determining the width of the browser window in Visual Basic

Posted on 2010-08-16
3
362 Views
Last Modified: 2013-11-27
I've developed a web page where I'd like to adjust the size of a font based on the browser window size. Is there a simple way to get the browser width using Visual Basic in my aspx pages?
0
Comment
Question by:efz
3 Comments
 
LVL 16

Accepted Solution

by:
MikeMCSD earned 500 total points
Comment Utility
<script language=javascript>
var width=screen.width
var height=screen.height
window.open("frame.asp?Course=<%= strCourse %>&Width=" + width + "&Height=" + height,"_parent")
</script>

0
 

Author Comment

by:efz
Comment Utility
Mike, is there a visual basic counterpart to this code, i.e., something that can be placed in the vb file portion of the aspx page?
0
 
LVL 5

Expert Comment

by:JayFromPep
Comment Utility
Not really.  That is client side stuff, so you would have to use client side language.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now