Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 12th, 2010, 05:01 AM
Authorized User
 
Join Date: Jun 2008
Location: Faridabad, Haryana, India.
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
__________________

  #2 (permalink)  
Old October 12th, 2010, 05:40 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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?
  #3 (permalink)  
Old October 12th, 2010, 07:37 AM
Authorized User
 
Join Date: Jun 2008
Location: Faridabad, Haryana, India.
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
__________________

  #4 (permalink)  
Old October 13th, 2010, 12:53 AM
Authorized User
 
Join Date: Jun 2008
Location: Faridabad, Haryana, India.
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.