?
Solved

Changing panel position.

Posted on 2009-04-20
6
Medium Priority
?
252 Views
Last Modified: 2013-11-19
How do I change the position of an asp.net panel (in code) at runtime?
0
Comment
Question by:jaerob
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:burakiewicz
ID: 24185359
do you want to change it with javascript or codebehind?
0
 

Author Comment

by:jaerob
ID: 24185368
Codebehind for sure.    :)
0
 
LVL 16

Accepted Solution

by:
burakiewicz earned 2000 total points
ID: 24185450
for c# two ways
if the control does not have the style set on it
con.Style.Add(HtmlTextWriterStyle.Position, "absolute");
con.Style.Add(HtmlTextWriterStyle.Top, "500px");
con.Style.Add(HtmlTextWriterStyle.Left, "500px");

If the style is set on it

con.Style[HtmlTextWriterStyle.Position] = "absolute";
con.Style[HtmlTextWriterStyle.Top] = "500px";
con.Style[HtmlTextWriterStyle.Left] = "500px";
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jaerob
ID: 24185468
Cool... I'll give this a try and hit you back. Thanks.
0
 

Author Closing Comment

by:jaerob
ID: 31572235
Awesome, burakiewicz!!! This was exactly what I needed. Thank you so much.
0
 
LVL 16

Expert Comment

by:burakiewicz
ID: 24186908
no prob
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

829 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