Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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