Solved

Aligning Panel In Screen Centre ASP.NET

Posted on 2011-03-12
5
2,044 Views
Last Modified: 2012-05-11
How do you align an ASP.NET panel in the centre of the screen taking into account the screen resolution ? Have tried the javascript method of obtaining screen size which doesn't work. Is it possible to put an ASP panel in an HTML table which resizes automatically using % settings for width/height ?
0
Comment
Question by:cehrnow
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:mayankagarwal
ID: 35119103
<div align="center">
<asp:panel id="panel1">
</asp:panel>
</div>
0
 
LVL 5

Expert Comment

by:mayankagarwal
ID: 35119136
yes it is possible to auto size. But in that case you should not use the width/height property.
0
 

Author Comment

by:cehrnow
ID: 35120949
Can you elaborate ?
0
 
LVL 5

Accepted Solution

by:
mayankagarwal earned 500 total points
ID: 35125556
to align panel in the center put it into <div></div> tag and and set align property to center
0
 

Author Closing Comment

by:cehrnow
ID: 35126694
Thanks!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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