Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2010, 05:01 AM
Authorized User
 
Join Date: Jun 2008
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default Screen Size

Hi All

I already get screen size by 'screen.width' in javascript. Now i want to use it in asp.net 2008 with C# page load event. To display web page contents according to screen size on any device like Mobile Phone or PC

send the needfull

Thanks
__________________

 
Old October 12th, 2010, 05:40 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You can't determine the screensize of the client from the server, at least not without sending it into the url.

You can determine the browser using browser capabilities. But I've never done that so I'm not sure what the current best method is. Try googling for "ASP.Net Browser Capabilities".
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old October 12th, 2010, 07:37 AM
Authorized User
 
Join Date: Jun 2008
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by samjudson View Post
You can't determine the screensize of the client from the server, at least not without sending it into the url.

You can determine the browser using browser capabilities. But I've never done that so I'm not sure what the current best method is. Try googling for "ASP.Net Browser Capabilities".
Thanks for your kind response
__________________

 
Old October 13th, 2010, 12:53 AM
Authorized User
 
Join Date: Jun 2008
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

But if i am doing this the screen width and browserwidth are different
__________________






Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw on the screen without clearing the screen pu132 Visual Basic 2005 Basics 0 August 25th, 2006 09:03 PM
Screen Size and Java Script srotondo Classic ASP Professional 5 December 20th, 2004 07:24 PM
Size of Screen cinest General .NET 2 October 8th, 2004 03:33 AM
changing text size on screen markhardiman Classic ASP Professional 4 August 31st, 2004 07:01 AM
Screen Size bmains VB.NET 11 June 28th, 2004 02:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.