Solved

Determining the width of the browser window in Visual Basic

Posted on 2010-08-16
3
397 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
[X]
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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send SMS from vb.net desktop app 30 53
AJAX Create / Update Not working MVC 5 67
Help with Report Viewer in VS2013 6 34
Ajax calendar distorted 4 23
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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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