p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: align and vAlign attributes


Message #1 by "Jacques PHILIP" <jphilip@n...> on Sat, 25 May 2002 00:48:10
Hello there,

I am having a problem with the web form designer in VS.
If I set align to "center" and vAlign to "middle" in a TD or TR tag in 
HTML mode, each time I go to design mode, the designer switches the values 
("middle" for align and "center" for vAlign).
Also, the properties explorer offers a "center" option for the vAlign 
attribute for the TD tag. 
Does anyone know if this a problem with VS, or am I doing something wrong?

Jacques PHILIP 
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 28 May 2002 08:46:06 -0400
> Does anyone know if this a problem with VS, or am I doing something wrong?

	YOU ARE DOING SOMETHING WRONG!  Otherwise VS wouldn't be correcting
it for your! :)

	There are alot of things VS autocorrects for you.  Your options are
to [1] never use design mode and set your options to always open a page in
HTML mode so there's never any Microsoft-ification [read:
FrontPage-ification] of your HTML source, or [2] accept it and think that VS
is trying to make your code compliant with whatever HTML schema you've
decided to attack for this particular project.  Personally I've opted for
#1.

- Chuck

-----Original Message-----
From: Jacques PHILIP [mailto:jphilip@n...]
Sent: Friday, May 24, 2002 8:48 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] align and vAlign attributes


Hello there,

I am having a problem with the web form designer in VS.
If I set align to "center" and vAlign to "middle" in a TD or TR tag in 
HTML mode, each time I go to design mode, the designer switches the values 
("middle" for align and "center" for vAlign).
Also, the properties explorer offers a "center" option for the vAlign 
attribute for the TD tag. 
Does anyone know if this a problem with VS, or am I doing something wrong?

Jacques PHILIP 
Message #3 by "Minh T. Nguyen" <nguyentriminh@y...> on Tue, 28 May 2002 08:25:52 -0700
Chuck,

	I have the same problem, it's just funny that VS.NET underlines
vAlign="center" as wrong although IntelliSense offers me that option.
It's as if IntelliSense and VS.NET spell-checker speak different HTML
languages.

	What do you mean with open a page in HTML mode? How is that
done?

Minh.

-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...] 
Sent: Tuesday, May 28, 2002 5:46 AM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] RE: align and vAlign attributes


> Does anyone know if this a problem with VS, or am I doing something
wrong?

	YOU ARE DOING SOMETHING WRONG!  Otherwise VS wouldn't be
correcting
it for your! :)

	There are alot of things VS autocorrects for you.  Your options
are
to [1] never use design mode and set your options to always open a page
in
HTML mode so there's never any Microsoft-ification [read:
FrontPage-ification] of your HTML source, or [2] accept it and think
that VS
is trying to make your code compliant with whatever HTML schema you've
decided to attack for this particular project.  Personally I've opted
for
#1.

- Chuck

-----Original Message-----
From: Jacques PHILIP [mailto:jphilip@n...]
Sent: Friday, May 24, 2002 8:48 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] align and vAlign attributes


Hello there,

I am having a problem with the web form designer in VS.
If I set align to "center" and vAlign to "middle" in a TD or TR tag in 
HTML mode, each time I go to design mode, the designer switches the
values 
("middle" for align and "center" for vAlign).
Also, the properties explorer offers a "center" option for the vAlign 
attribute for the TD tag. 
Does anyone know if this a problem with VS, or am I doing something
wrong?

Jacques PHILIP 


Message #4 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 28 May 2002 11:57:48 -0400
Minh,

> I have the same problem, it's just funny that VS.NET underlines
> vAlign="center" as wrong although IntelliSense offers me that option.

	Oh, you should see my pages.  I come from a Perl/SSI background, so
all my boiler stuff (the top of the page and bottom) is implemented in Web
UserControls (<whatever:Top RunAt="server" /> for example).  I think there's
actually more red squiglies than there is actual text.

> What do you mean with open a page in HTML mode? How is that done?

	In VS.NET, click on Tools > Options.  Select the "HTML Designer"
option from the left, and choose "HTML View" from the first set of radio
options.  Done. :)

	Of course the one problem you may run into is if you have not yet
memorized all the delegates for all your asp: and html: control events, you
may be tempted to switch to design mode to click on the control and click on
the event to add a new event to the code behind file.  DO NOT DO THIS!  DO
NOT FALL TO THE DARK SIDE!  Use F1 if you have to.  Don't let

style="border: 0px;"

become

style="BORDER-RIGHT: 0; BORDER-LEFT: 0; BORDER-TOP: 0; BORDER-BOTTOM: 0"
[sic]

- Chuck

-----Original Message-----
From: Minh T. Nguyen [mailto:nguyentriminh@y...]
Sent: Tuesday, May 28, 2002 11:26 AM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] RE: align and vAlign attributes


Chuck,

	I have the same problem, it's just funny that VS.NET underlines
vAlign="center" as wrong although IntelliSense offers me that option.
It's as if IntelliSense and VS.NET spell-checker speak different HTML
languages.

	What do you mean with open a page in HTML mode? How is that
done?

Minh.

-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...] 
Sent: Tuesday, May 28, 2002 5:46 AM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] RE: align and vAlign attributes


> Does anyone know if this a problem with VS, or am I doing something
wrong?

	YOU ARE DOING SOMETHING WRONG!  Otherwise VS wouldn't be
correcting
it for your! :)

	There are alot of things VS autocorrects for you.  Your options
are
to [1] never use design mode and set your options to always open a page
in
HTML mode so there's never any Microsoft-ification [read:
FrontPage-ification] of your HTML source, or [2] accept it and think
that VS
is trying to make your code compliant with whatever HTML schema you've
decided to attack for this particular project.  Personally I've opted
for
#1.

- Chuck

-----Original Message-----
From: Jacques PHILIP [mailto:jphilip@n...]
Sent: Friday, May 24, 2002 8:48 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] align and vAlign attributes


Hello there,

I am having a problem with the web form designer in VS.
If I set align to "center" and vAlign to "middle" in a TD or TR tag in 
HTML mode, each time I go to design mode, the designer switches the
values 
("middle" for align and "center" for vAlign).
Also, the properties explorer offers a "center" option for the vAlign 
attribute for the TD tag. 
Does anyone know if this a problem with VS, or am I doing something
wrong?

Jacques PHILIP 



Message #5 by "Mike Gale" <info@d...> on Wed, 29 May 2002 09:06:45 +1200
Handling HTML variants is one area where VS forces me to use other tools
before I'm comfortable enough to release.

Have you noticed how the HTML emitted by ASP.NET to the browser does not
honour your DOCTYPE declarations!

Does anyone have "war stories" about integrating VS with editors like
Homesite and CSE 3310?

Does anyone have experience subclassing controls that emit HTML so that
they do an acceptable job when you "inspect source" at the browser?

Mike Gale, Decision Engineering (NZ) Ltd.

>	Of course the one problem you may run into is if you have not
yet
>memorized all the delegates for all your asp: and html: control events,
you
>may be tempted to switch to design mode to click on the control and
click on
>the event to add a new event to the code behind file.  DO NOT DO THIS!
DO
>NOT FALL TO THE DARK SIDE!  Use F1 if you have to.  Don't let


  Return to Index