• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

Determining the width of the browser window in Visual Basic

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
efz
Asked:
efz
1 Solution
 
MikeMCSDCommented:
<script language=javascript>
var width=screen.width
var height=screen.height
window.open("frame.asp?Course=<%= strCourse %>&Width=" + width + "&Height=" + height,"_parent")
</script>

0
 
efzAuthor Commented:
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
 
JayFromPepCommented:
Not really.  That is client side stuff, so you would have to use client side language.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now