473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Getting the current page size in asp.net

Hello,

I am new to asp.net. Can anybody please tell me how to get current
page size in asp.net...?
Thanks in advance.
Regards,
Gouri.
Jun 27 '08 #1
6 3158
Are you talking about screen size ?
<Go************@gmail.comwrote in message
news:cd**********************************@g16g2000 pri.googlegroups.com...
Hello,

I am new to asp.net. Can anybody please tell me how to get current
page size in asp.net...?
Thanks in advance.
Regards,
Gouri.

Jun 27 '08 #2

Hello,

I want to know the current web page size in asp.net so that I can
adjust the size of the user control on the web page accordingly.

Regards,
Gouri.
Jun 27 '08 #3
Use percentage for width.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<Go************@gmail.comwrote in message
news:a4**********************************@w8g2000p rd.googlegroups.com...
>
Hello,

I want to know the current web page size in asp.net so that I can
adjust the size of the user control on the web page accordingly.

Regards,
Gouri.

Jun 27 '08 #4
Hello,

As you suggested I have used percentage for setting the width of the
control. It is working fine. But when I use the percentage for setting
the height, control is not shown on the web page. What could be the
problem can you please explain me.? Thanks.

Regards,
Gouri.
Jun 27 '08 #5
On May 27, 12:23 pm, Gouri.Mahaj...@gmail.com wrote:
Hello,

As you suggested I have used percentage for setting the width of the
control. It is working fine. But when I use the percentage for setting
the height, control is not shown on the web page. What could be the
problem can you please explain me.? Thanks.

Regards,
Gouri.
Hi,

In few html controls height by percentage don't work in those case
height by pixel or em is good.

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com

Jun 27 '08 #6
Hi,

Initially when web page is loaded or when the page is refreshed the
the control is disappeared. When maximize/minimize button on the
browser is pressed then control is appeared when percentage is used
for height. Why is like this..??

Regards,
Gouri.
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: KarimL | last post by:
Thanks for your advices... but i need to get the Image height because i dynamically resize the height of my webcontrol based on the image height. More i just have the url (relative parth) to the...
12
by: Jared Carr | last post by:
First I wish I knew how this was caused but here is our problem. Sometime in the recent past we got a duplicate table. Here is the result of a pg_dump with a pg_restore for just that table. ...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
8
by: BB | last post by:
Hi, I am using FormView Contol, TextBox (Hidden ) and Submit button whose caption is "View Page" in my aspx page. Here is what I am tryin to do.When page loads I generate dynamic url in text box...
6
by: Ronchese | last post by:
Hello, is there any way to get the name of the current running procedure? For example: Public Sub Test( ) 'do something '...
1
davydany
by: davydany | last post by:
Hey guys...a n00b Here for this site. I'm making a sequence class for my C++ class. And The thing is in the array that I have, lets say i put in {13,17,38,18}, when i see the current values for the...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.