Showing posts with label visual. Show all posts
Showing posts with label visual. Show all posts

Thursday, March 29, 2012

html gets deleted

I'm using visual studio and working on some webforms.
the last few forms that I have created have been very
long and after I save the form - parts of the html get
deleted and I lose the objects at the bottom of the
page. the code however is still in the code behind
module. has anyone experienced this type of behavior?Bob,

Does this help?

324440 FIX: Data Loss When You Change Views in WebForm Designer

You didn't say what version of VS.NET. This is for 2002.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
jamesche@.online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

-------
>Content-Class: urn:content-classes:message
>From: "bob" <compbob_2000@.hotmail.com>
>Sender: "bob" <compbob_2000@.hotmail.com>
>Subject: html gets deleted
>Date: Mon, 27 Oct 2003 13:23:35 -0800
>Lines: 6
>Message-ID: <044701c39cd0$94ad1e90$a301280a@.phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
>charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Thread-Index: AcOc0JSqjfELt55HSwGM+sLqEOvXIw==
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>Path: cpmsftngxa06.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:186835
>NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>I'm using visual studio and working on some webforms.
>the last few forms that I have created have been very
>long and after I save the form - parts of the html get
>deleted and I lose the objects at the bottom of the
>page. the code however is still in the code behind
>module. has anyone experienced this type of behavior?

HTML Frameset editor?

Have anyone seen a third party visual HTML Frameset ActiveX or .NET
component?
I need to define frames (add/remove), visually change sizes etc.
Not needed to be free or anything, but I have googled for hours now finding
nada.
Regards
Fredrikall html editors support this. VS does a fine job as its such simple html.
what is your exact problem? actully its so simple I've never needed more
than notepad.
-- bruce (sqlwork.com)
"Fredrik Melin" <mel@.no-spam.dacsa-remove-this.net> wrote in message
news:%23MSIR7T3EHA.824@.TK2MSFTNGP11.phx.gbl...
| Have anyone seen a third party visual HTML Frameset ActiveX or .NET
| component?
|
| I need to define frames (add/remove), visually change sizes etc.
|
| Not needed to be free or anything, but I have googled for hours now
finding
| nada.
|
| Regards
| Fredrik
|
|
You can visual change a framesets in Visual Studio.
/Lars
"Fredrik Melin" <mel@.no-spam.dacsa-remove-this.net> skrev i meddelandet
news:%23MSIR7T3EHA.824@.TK2MSFTNGP11.phx.gbl...
> Have anyone seen a third party visual HTML Frameset ActiveX or .NET
> component?
> I need to define frames (add/remove), visually change sizes etc.
> Not needed to be free or anything, but I have googled for hours now
> finding nada.
> Regards
> Fredrik
>
Yes, but this is for within a sales system where sales managers must be able
to change frames layout.
So, its for people that dont know what HTML is... therefor a visual editor
is needed.
- Fredrik
"bruce barker" <nospam_brubar@.safeco.com> wrote in message
news:%23ETMt1U3EHA.924@.TK2MSFTNGP14.phx.gbl...
> all html editors support this. VS does a fine job as its such simple html.
> what is your exact problem? actully its so simple I've never needed more
> than notepad.
> -- bruce (sqlwork.com)
> "Fredrik Melin" <mel@.no-spam.dacsa-remove-this.net> wrote in message
> news:%23MSIR7T3EHA.824@.TK2MSFTNGP11.phx.gbl...
> | Have anyone seen a third party visual HTML Frameset ActiveX or .NET
> | component?
> |
> | I need to define frames (add/remove), visually change sizes etc.
> |
> | Not needed to be free or anything, but I have googled for hours now
> finding
> | nada.
> |
> | Regards
> | Fredrik
> |
> |
>
> Yes, but this is for within a sales system where sales managers must be
able
> to change frames layout.
I imagine what you need is to write your own app where people can set their
frame preferences, which you then store in a DB and dynamically create the
frameset code from that.
-Darrel

Saturday, March 24, 2012

HTML Design View

I recently started a new job which involves using Microsoft Visual Studio .NET 2003, which I also used at my last job.
Here's my problem. When I open an HTML page in Visual Studio, the only option I get is to view it in HTML view. There is no Design view tab. Under Tools, Options, HTML Designer, I have Design View checked for all three options (Start HTML Pages, Start Active Server Pages and Start Web Form Pages.
In addition, while I can see all the tabs on my toolbox (Device Controls, Crystal Reports, Data, XML Schema, Dialog Editor, Mobile Web Forms, Web Forms, Components, Windows Forms, HTML, Clipboard Ring and General), the only tab that has any of the objects enabled is the HTML tab. Except for the Pointer, all the other objects on all the other tabs are disabled (greyed-out).
This was not the case with the installation of Visual Studio .NET 2003 at my last job. Has anyone experienced this before or can anyone offer any suggestions as to what options I need to set in order to enable HTML Design View and to be able to use the server components?
Thanks in advance,
Steve
SDSwasey--
Regarding this...

SDSwasey wrote:


...When I open an HTML page in Visual Studio, the only option I get is to view it in HTML view. There is no Design view tab...


...I am not sure why this is happening.
However, try accessing the design view from the menus...
>View, >Design.
...Does that work?



Hi Mark:

Thanks for responding to my post.

I meant to include that in my original post. My View menu does not include the "Design" option. Neither is the option available when I right-click on the item in the Solutions Explorer.

Does Visual Studio .NET have to be installed as Administrator or as someone with Administrator privileges?

Thanks again,

Steve


Seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxoriInstallationSetup.asp for details, specifically the "User Permissions" section. Like most products, VS.NET requires admin rights for installation.
Sounds like someone may have installed it for you? If so, better go harrass them.
Good Luck!
SDSwasey--
Regarding this...

SDSwasey wrote:


Does Visual Studio .NET have to be installed as Administrator or as someone with Administrator privileges?


...the answer is "yes".
Ug.
If that was not the case when your instance of VS.NET 2003 was installed, then, (assuming that you are using Windows XP Pro), I recommend the following:
--Login to the workstation with an account that is a member of the "Administrators" group.
--Uninstall VS.NET 2003 completely.
--Reboot.
--Do a full install of VS.NET 2003, checking all options in the components selection dialog.
--Reboot.
--Apply all Recommended and Critical updates from the Windows Update site.
--Reboot.
--Try to run VS.NET 2003.
--If it works, then you are all set; but, if it does not work, then call your girl and tell her you might be late for dinner because it is probably going to be a long day.
HTH.

HTML DB alternative

I have been using Oracle's HTML DB in my work.

I am graduating from university and need to compare HTML DB with another silimar product.

Visual Web Developer seems to be silimar but it is intended for non-professionals and hobbyists. What can be Microsoft's alternative to HTML DB?

Hey,

A long time ago, I heard that a tool similar to HTML DB would be included with SQL Server 2005, but haven't heard any more about it, and if it is in 2005, I haven't seen where. VWD is not a tool to compare to HTML DB.
Visual Web Developer isn't really an alternative to HTML DB, though it does accelerate the process of creating websites in the same way. I guess they are both RAD tools, but VWD is far more flexible as it's a full programming environment and you are not just limited to programming in T-SQL.

If you do know HTML DB, though, then you'll find VWD does have some similar functions. For instance, GridView is similar in concept to HTML DB reports and Master Pages follow the same concepts as HTML DB templates.

Thanx for answers.

Has anybody heard what happened to the tool that bmains mentioned? Something that was supposed to be in MS SQL server 2005. Is there anything?

Thursday, March 22, 2012

HTML code warnings in asp.net html code view

Hi,
This is a silly question. I'm relatively new to asp.net and asp at all. But
I always had this doubt.
I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.
Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"
<link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body
<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">
And so on ...
So, could someone explain, what are all these warnings and where they are
comming from ?
Regards,Hi,
It's the VS internal html validation, which by default (with no meta header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.
Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> Hi,
> This is a silly question. I'm relatively new to asp.net and asp at all.
But
> I always had this doubt.
> I'm working with Visual Studio and while exploring the ASPCommerce starter
> kit, when I switch from design view to html code view, I see many keywords
> underlied, like if they were invalid, however, they're not, they display
> fine and the project runs fine.
> Example, the next, the "link" keyword is underlied and it popups to : "the
> active scheme does not support element link"
> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> More, all the margin related attribute, are marked as : Could not find any
> attribute "leftmargin" of element body
> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
topmargin="0"
> rightmargin="0"
> bottommargin="0" marginheight="0" marginwidth="0">
> And so on ...
> So, could someone explain, what are all these warnings and where they are
> comming from ?
>
> Regards,
>
>
Martin :
Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:
marginheight="0" marginwidth="0"
What does this have as special ?
Regards,
"Martin Dechev" <detcheff_@.hotmail.com> wrote in message
news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> Hi,
> It's the VS internal html validation, which by default (with no meta
> header
> "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
> document property targetSchema to Internet Explorer 5 most, if not all, of
> these "errors" will disappear.
> Greetings
> Martin
> "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> But
> topmargin="0"
>
Hi,
These are not in the w3c standards (they are in fact, but apply only for
frame and iframe) and will be ignored by browsers. I prefer setting the
margins of the body of the document using the style attribute:
<body style="margin: 0px;">
or assigning it a css class alternatively.
Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OC1TqVIrEHA.3288@.TK2MSFTNGP12.phx.gbl...
> Martin :
> Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
> available there), and in fact it disappeared almost all.
> However, these still there warning:
> marginheight="0" marginwidth="0"
> What does this have as special ?
> Regards,
>
> "Martin Dechev" <detcheff_@.hotmail.com> wrote in message
> news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
the
of
display
are
>

HTML code warnings in asp.net html code view

Hi,

This is a silly question. I'm relatively new to asp.net and asp at all. But
I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css"
More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0"
And so on ...

So, could someone explain, what are all these warnings and where they are
comming from ?

Regards,Hi,

It's the VS internal html validation, which by default (with no meta header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.

Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> Hi,
> This is a silly question. I'm relatively new to asp.net and asp at all.
But
> I always had this doubt.
> I'm working with Visual Studio and while exploring the ASPCommerce starter
> kit, when I switch from design view to html code view, I see many keywords
> underlied, like if they were invalid, however, they're not, they display
> fine and the project runs fine.
> Example, the next, the "link" keyword is underlied and it popups to : "the
> active scheme does not support element link"
> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> More, all the margin related attribute, are marked as : Could not find any
> attribute "leftmargin" of element body
> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
topmargin="0"
> rightmargin="0"
> bottommargin="0" marginheight="0" marginwidth="0">
> And so on ...
> So, could someone explain, what are all these warnings and where they are
> comming from ?
>
> Regards,
>
Martin :

Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:

marginheight="0" marginwidth="0"

What does this have as special ?

Regards,

"Martin Dechev" <detcheff_@.hotmail.com> wrote in message
news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> Hi,
> It's the VS internal html validation, which by default (with no meta
> header
> "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
> document property targetSchema to Internet Explorer 5 most, if not all, of
> these "errors" will disappear.
> Greetings
> Martin
> "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> This is a silly question. I'm relatively new to asp.net and asp at all.
> But
>> I always had this doubt.
>>
>> I'm working with Visual Studio and while exploring the ASPCommerce
>> starter
>> kit, when I switch from design view to html code view, I see many
>> keywords
>> underlied, like if they were invalid, however, they're not, they display
>> fine and the project runs fine.
>>
>> Example, the next, the "link" keyword is underlied and it popups to :
>> "the
>> active scheme does not support element link"
>>
>> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
>>
>> More, all the margin related attribute, are marked as : Could not find
>> any
>> attribute "leftmargin" of element body
>>
>> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
> topmargin="0"
>> rightmargin="0"
>> bottommargin="0" marginheight="0" marginwidth="0">
>>
>> And so on ...
>>
>> So, could someone explain, what are all these warnings and where they are
>> comming from ?
>>
>>
>> Regards,
>>
>>
>>
>>
Hi,

These are not in the w3c standards (they are in fact, but apply only for
frame and iframe) and will be ignored by browsers. I prefer setting the
margins of the body of the document using the style attribute:

<body style="margin: 0px;"
or assigning it a css class alternatively.

Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OC1TqVIrEHA.3288@.TK2MSFTNGP12.phx.gbl...
> Martin :
> Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
> available there), and in fact it disappeared almost all.
> However, these still there warning:
> marginheight="0" marginwidth="0"
> What does this have as special ?
> Regards,
>
> "Martin Dechev" <detcheff_@.hotmail.com> wrote in message
> news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> > Hi,
> > It's the VS internal html validation, which by default (with no meta
> > header
> > "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set
the
> > document property targetSchema to Internet Explorer 5 most, if not all,
of
> > these "errors" will disappear.
> > Greetings
> > Martin
> > "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> > news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> >> Hi,
> >>
> >> This is a silly question. I'm relatively new to asp.net and asp at all.
> > But
> >> I always had this doubt.
> >>
> >> I'm working with Visual Studio and while exploring the ASPCommerce
> >> starter
> >> kit, when I switch from design view to html code view, I see many
> >> keywords
> >> underlied, like if they were invalid, however, they're not, they
display
> >> fine and the project runs fine.
> >>
> >> Example, the next, the "link" keyword is underlied and it popups to :
> >> "the
> >> active scheme does not support element link"
> >>
> >> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> >>
> >> More, all the margin related attribute, are marked as : Could not find
> >> any
> >> attribute "leftmargin" of element body
> >>
> >> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
> > topmargin="0"
> >> rightmargin="0"
> >> bottommargin="0" marginheight="0" marginwidth="0">
> >>
> >> And so on ...
> >>
> >> So, could someone explain, what are all these warnings and where they
are
> >> comming from ?
> >>
> >>
> >> Regards,
> >>
> >>
> >>
> >>

HTML Code formatting

I have a web form that whenever I open it, Visual Studio (both 2003 and
2005) insist on reformatting it.
Is there a way to keep it from doing this?
Mainly what is happening, is a table I have on that page keeps
automatically adjusting its width and height where I do not want it to.
BCThis is a problem with the page parser due to the fact that the html on your
page is bad. You have an issue like overlapping tags or inappropriate tag
placement or something difficult to see like that. It is easy to do with thi
s
with repeaters where you have the repeater repeat a table row by putting it
inbetween the <table> and <tr> tags.
check your mark up first, if the page is big, try cutting out large chuncks
and check if it still happens. keeps trying as there is likely to be an issu
e
somewhere. If you cant find it then post your markup.
Ciaran O''''Donnell
http://wannabedeveloper.spaces.live.com
"Blasting Cap" wrote:

> I have a web form that whenever I open it, Visual Studio (both 2003 and
> 2005) insist on reformatting it.
> Is there a way to keep it from doing this?
> Mainly what is happening, is a table I have on that page keeps
> automatically adjusting its width and height where I do not want it to.
>
> BC
>
Hi, is this an answer on my post?
"Blasting Cap" <goober@.christian.net> schreef in bericht
news:evIlfzEJHHA.4068@.TK2MSFTNGP03.phx.gbl...
>I have a web form that whenever I open it, Visual Studio (both 2003 and
>2005) insist on reformatting it.
> Is there a way to keep it from doing this?
> Mainly what is happening, is a table I have on that page keeps
> automatically adjusting its width and height where I do not want it to.
>
> BC
>
What are you asking here?
Ciaran answered you over an hour before your last post.
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Bob" <gtdbd> wrote in message news:OAMvZpFJHHA.420@.TK2MSFTNGP06.phx.gbl...
> Hi, is this an answer on my post?
> "Blasting Cap" <goober@.christian.net> schreef in bericht
> news:evIlfzEJHHA.4068@.TK2MSFTNGP03.phx.gbl...
>

Wednesday, March 21, 2012

HTML changing format

In the 2003 Visual Studio.NET, when switching between the
HTML tab and the Design tab, the HTML changes format into
something less readable.

I have turned off the automatic formatting for HTML in
Tools/Options', but it keeps changing the format that I
give it. How can I keep it from changing?I'm afraid this is a long-running issue that may be a long time in fixing.
:(

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Tobe" <tobep@.vantagecontrols.com> wrote in message
news:0ae701c33b21$ebd10710$a501280a@.phx.gbl...
> In the 2003 Visual Studio.NET, when switching between the
> HTML tab and the Design tab, the HTML changes format into
> something less readable.
> I have turned off the automatic formatting for HTML in
> Tools/Options', but it keeps changing the format that I
> give it. How can I keep it from changing?

HTML Changing

Hello All,

I'm expereincing a strange problem using Visual Studio. In HTML view I have the following two lines of code. Every time I save the page the two "/" disappear. from the HTML. This then causes an error message when the page loads. I have tried various settings on the option tab to stop this from occuring but none seem to work.


<meta name="keywords" content="keys" ID="Keywords" runat="server"/>
<meta name="description" content="description" ID="Description" runat="server"/>
Which version of VS?

HTML and ASPX

Hello,
I have a .net (aspx) web site that also contains some straight HTML pages.
I can send data between aspx pages using Visual Basic .NET:
Session("Something") = Value

Is there a way to send data from the HTML Page to the ASPX (.NET) page?

I need to retrieve the Value from the code behind page of the ASPX page.

Any suggestions will be greatly appreciated.

Thanks,

Chuckyou can use querystrings or hidden fields to pass values from htm to aspx

"Charles A. Lackman" <Charles@.cet.com> wrote in message
news:uWdivuCKEHA.2680@.TK2MSFTNGP11.phx.gbl...
> Hello,
> I have a .net (aspx) web site that also contains some straight HTML
pages.
> I can send data between aspx pages using Visual Basic .NET:
> Session("Something") = Value
> Is there a way to send data from the HTML Page to the ASPX (.NET) page?
> I need to retrieve the Value from the code behind page of the ASPX page.
> Any suggestions will be greatly appreciated.
> Thanks,
> Chuck

HTML and ASPX

Hello,
I have a .net (aspx) web site that also contains some straight HTML pages.
I can send data between aspx pages using Visual Basic .NET:
Session("Something") = Value
Is there a way to send data from the HTML Page to the ASPX (.NET) page?
I need to retrieve the Value from the code behind page of the ASPX page.
Any suggestions will be greatly appreciated.
Thanks,
Chuckyou can use querystrings or hidden fields to pass values from htm to aspx
"Charles A. Lackman" <Charles@.cet.com> wrote in message
news:uWdivuCKEHA.2680@.TK2MSFTNGP11.phx.gbl...
> Hello,
> I have a .net (aspx) web site that also contains some straight HTML
pages.
> I can send data between aspx pages using Visual Basic .NET:
> Session("Something") = Value
> Is there a way to send data from the HTML Page to the ASPX (.NET) page?
> I need to retrieve the Value from the code behind page of the ASPX page.
> Any suggestions will be greatly appreciated.
> Thanks,
> Chuck
>
>

HTML 4.01 Schema in VS2005

Is there a problem with the HTML 4.01 schema in Visual Studio 2005?
When I set the target schema for validation to HTML 4.01, I receive closing
tag errors.
Example:
Validation (HTML 4.01): Empty elements such as 'meta' must end with />.
I do not believe that is the correct validation. Empty elements in HTML 4.01
should not contain closing tags. Am I mistaken?
Regards,
Fred Chateau
http://hotelmotelnow.comre:
> Empty elements in HTML 4.01 should not contain closing tags. Am I mistaken?[/color
]
Not all elements are subject to that.
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
Some HTML element types allow authors to omit end tags (e.g., the P and LI e
lement types).
The HTML DTD indicates for each element type whether the end tag is required
.
Some HTML element types have no content.
For example, the line break element BR has no content; its only role is to t
erminate a line of text.
Such empty elements never have end tags.
The Meta element, however, needs end tags because it should never be an empt
y element.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Fred Chateau" <webmaster@.hotelmotelnow.com> wrote in message
news:%23wq1AVpOHHA.3268@.TK2MSFTNGP03.phx.gbl...
> Is there a problem with the HTML 4.01 schema in Visual Studio 2005?
> When I set the target schema for validation to HTML 4.01, I receive closin
g tag errors.
> Example:
> Validation (HTML 4.01): Empty elements such as 'meta' must end with />.
> I do not believe that is the correct validation. Empty elements in HTML 4.
01 should not contain
> closing tags. Am I mistaken?
> --
> Regards,
> Fred Chateau
> http://hotelmotelnow.com
>
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote ...

> For example, the line break element BR has no content; its only role is to
> terminate a line of text.
> Such empty elements never have end tags.
Thank you. I thought that was the case.
My point still is that VS 2005 HTML 4.01 validation is requiring ALL tags to
be closed, including break tags and image tags, in a manner similar to XHTML
1.1 validation.
Is it my installation or is this schema incorrect? (I am using VS 2005
Standard Edition with SP-1.)
Regards,
Fred Chateau
http://hotelmotelnow.com

HTML 4.01 Schema in VS2005

Is there a problem with the HTML 4.01 schema in Visual Studio 2005?

When I set the target schema for validation to HTML 4.01, I receive closing
tag errors.

Example:
Validation (HTML 4.01): Empty elements such as 'meta' must end with />.

I do not believe that is the correct validation. Empty elements in HTML 4.01
should not contain closing tags. Am I mistaken?

--
Regards,

Fred Chateau
http://hotelmotelnow.com"Juan T. Llibre" <nomailreplies@.nowhere.comwrote ...

Quote:

Originally Posted by

For example, the line break element BR has no content; its only role is to
terminate a line of text.
Such empty elements never have end tags.


Thank you. I thought that was the case.

My point still is that VS 2005 HTML 4.01 validation is requiring ALL tags to
be closed, including break tags and image tags, in a manner similar to XHTML
1.1 validation.

Is it my installation or is this schema incorrect? (I am using VS 2005
Standard Edition with SP-1.)

--
Regards,

Fred Chateau
http://hotelmotelnow.com
re:

Quote:

Originally Posted by

Empty elements in HTML 4.01 should not contain closing tags. Am I mistaken?


Not all elements are subject to that.

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
Some HTML element types allow authors to omit end tags (e.g., the P and LI element types).
The HTML DTD indicates for each element type whether the end tag is required.

Some HTML element types have no content.

For example, the line break element BR has no content; its only role is to terminate a line of text.
Such empty elements never have end tags.

The Meta element, however, needs end tags because it should never be an empty element.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Fred Chateau" <webmaster@.hotelmotelnow.comwrote in message
news:%23wq1AVpOHHA.3268@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

Is there a problem with the HTML 4.01 schema in Visual Studio 2005?
>
When I set the target schema for validation to HTML 4.01, I receive closing tag errors.
>
Example:
Validation (HTML 4.01): Empty elements such as 'meta' must end with />.
>
I do not believe that is the correct validation. Empty elements in HTML 4.01 should not contain
closing tags. Am I mistaken?
>
--
Regards,
>
Fred Chateau
http://hotelmotelnow.com
>
>