Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Determining the width of the browser window in Visual Basic

Posted on 2010-08-16
3
386 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
ID: 33448010
<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
ID: 33449293
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
ID: 33449521
Not really.  That is client side stuff, so you would have to use client side language.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

861 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