473,497 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Layout Absolute vs. Relative vs...my sanity

Ok, I gotta say I now believe in Voodoo & Magic after working with VS 2005
developing web pages.

I have a standard ASPX web page, the only two controls on the page are a
Label Control (WebControls.Label) and a Button (WebControls.Button). If I
place both controls using Layout = Relative they look correct on the web
page. But when I run the project they're relocated off screen somewhere.
If I go back to design mode and go into "Source" mode on the web page, I see
that left is set to -275px, and top = -20px??? So, if I switch either of
the controls to Layout = Absolute, both controls move OFF the web page (in
design mode) and I have to go into Source again and manually set the
left/top.

Can someone tell me WTF is going on with the VS 2005 IDE and why would it do
this? Is it because I have a dual monitor system or is it just some other
sadistic bug in VS 2005?

(cross posted on aspnet.webcontrols also -- apologize if this causes
issues).

Rob.
Mar 6 '06 #1
6 1348
I personally don't even use the web designer in visual studio. it
sucked in vs 2001, 2003, and it looks like it has transferred over to
2005 as well. I use dreamweaver for the actual layout code (tables/css
etc) of the webpage, then i bring it into visual studio once it looks
like i want, and put in the control declarations etc. and don't even
edit it within visual studio.

a little bit of a pain, but dreamweaver is dead on with rendering the
page EXACTLY as you lay it out (or close enough) in IE,Firefox etc...

my 2 cents!

dkode

Mar 6 '06 #2
I've heard many good things about Dreamweaver - I may explore that route,
but it does seem to be a pain to have to use yet another tool to bypass VS
2005 -- and it would be diffucult to train myself NOT to touch the layout
while I'm in VS 2005 IDE.

It is a shame as the VS 2005 IDE does Windows Forms layout extremely well,
but just returns to the dinosaur when dealing with web forms. I wonder if
there are any add-ins to replace the VS 2005 web page designer?
"DKode" <dk****@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
I personally don't even use the web designer in visual studio. it
sucked in vs 2001, 2003, and it looks like it has transferred over to
2005 as well. I use dreamweaver for the actual layout code (tables/css
etc) of the webpage, then i bring it into visual studio once it looks
like i want, and put in the control declarations etc. and don't even
edit it within visual studio.

a little bit of a pain, but dreamweaver is dead on with rendering the
page EXACTLY as you lay it out (or close enough) in IE,Firefox etc...

my 2 cents!

dkode

Mar 6 '06 #3
i find it ironic that a 3rd party tool (Dreamweaver) renders webpage
layout better for MICROSOFT IE, then Visual studio, which is made BY
MICROSOFT

Mar 6 '06 #4
I do recall going thru the bug report list (from MSDN) and seeing a
developer's response that suggested he would rather not touch any of the
code that deals with web page layout under VS 2005 as it is very involved --
i.e. could break more than he would fix.

$400 full version is not a bad price for DreamWeaver -- need to get details
on how much ASP.NET 2.0 support is has and how well I can get it to work
with my code behind.

"DKode" <dk****@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
i find it ironic that a 3rd party tool (Dreamweaver) renders webpage
layout better for MICROSOFT IE, then Visual studio, which is made BY
MICROSOFT

Mar 6 '06 #5
$400 full version is not a bad price for DreamWeaver -- need to get
details
on how much ASP.NET 2.0 support is has and how well I can get it to work
with my code behind.


It has zero support for .net 2 and never had support for codebehind.

The solution is to use VS.net for codebehind, DW for any front-end HTML
production.

Alas, that does mean using two tools.

-Darrel
Mar 7 '06 #6
like i said, i ONLY use dreamweaver for laying out the page. then i
just copy and paste the html into visual studio.

a pain, but at least you get an html layout that renders correctly in
multiple browsers

Mar 7 '06 #7

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

Similar topics

1
5349
by: Wilhelm Kutting | last post by:
Hi i like to make a complex layout with css. All the content is inside a container div. I like to get the following sequence without the css-layout: logo title mainnav content i can only...
3
2345
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
3
1530
by: Samuel Shulman | last post by:
I am looking for good guidance for positioning controls on the form.document, it is absolute nightmare and I don't know where to begin Thank you, Samuel Shulman
14
4813
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7196
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...
1
6878
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
7373
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...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.