Solved

Aligning Panel In Screen Centre ASP.NET

Posted on 2011-03-12
5
1,966 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
Comment Utility
<div align="center">
<asp:panel id="panel1">
</asp:panel>
</div>
0
 
LVL 5

Expert Comment

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

Author Comment

by:cehrnow
Comment Utility
Can you elaborate ?
0
 
LVL 5

Accepted Solution

by:
mayankagarwal earned 500 total points
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now