Ask a Question related to ASP.NET General, Design and Development.
-
Vaclav Jedlicka #1
asp:form generates invalid code
Hi all
The code generated by the server side control asp:form generates invalid
code. The HTML tag FORM always contains attribute "name".
When I validate the page with the online validator
([url]http://www.htmlhelp.com/tools/validator/direct.html[/url]) it says that:
<form name="browse" method="post" action="browse_employees.a ...
^Error: there is no attribute NAME for this element (in this HTML
version)
How can I prevent asp:form from generating this attribute?
Thanks in advance
Vaclav Jedlicka
Vaclav Jedlicka Guest
-
#38494 [Opn->Bgs]: xmlrpc_encode_request generates invalid xmlrpc request
ID: 38494 Updated by: mike@php.net Reported By: giunta dot gaetano at sea-aeroportimilano dot it -Status: Open... -
#25948 [Opn->Bgs]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
ID: 25948 Updated by: iliaa@php.net Reported By: phpdocs at pointbeing dot net -Status: Open +Status: ... -
#25948 [Opn]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
ID: 25948 User updated by: phpdocs at pointbeing dot net Reported By: phpdocs at pointbeing dot net Status: Open... -
#25948 [NEW]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
From: phpdocs at pointbeing dot net Operating system: Red Hat Linux release 7.3 (Valha PHP version: 4.3.2 PHP Bug Type: XSLT... -
Offer tips, comments on this code (generates html to index image files)
Please offer suggestions, comments, and tips on the following perl code. I had a need to quickly generate an html document indexing and displaying... -
George Ter-Saakov #2
Re: asp:form generates invalid code
Just validated the following HTML
---------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<form name="Asd" action="asd"></form>
</body>
</html>
-----------------------------------
It did not complain that <form> has a name.
George.
"Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
news:%23KtzJzEUDHA.560@TK2MSFTNGP10.phx.gbl...HTML> Hi all
>
> The code generated by the server side control asp:form generates invalid
> code. The HTML tag FORM always contains attribute "name".
>
> When I validate the page with the online validator
> ([url]http://www.htmlhelp.com/tools/validator/direct.html[/url]) it says that:
>
> <form name="browse" method="post" action="browse_employees.a ...
> ^Error: there is no attribute NAME for this element (in this> version)
>
>
>
> How can I prevent asp:form from generating this attribute?
>
>
>
> Thanks in advance
>
> Vaclav Jedlicka
>
>
George Ter-Saakov Guest
-
Vaclav Jedlicka #3
Re: asp:form generates invalid code
Thanks
You use HTML 4.01, I used 4.0, that is why I had the problem. I can fix my
problem by using version 4.01.
May I have another question? I am havening this problem with the validator
(even with HTML 4.01). The SCRIPT tag is generated by ASP.NET
<script language="javascript">
^Error: required attribute TYPE not specified
"George Ter-Saakov" <we@hotmail.com> wrote in message
news:%23AbGtPFUDHA.1552@TK2MSFTNGP10.phx.gbl...> Just validated the following HTML
>
> ---------------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
>
> <title></title>
>
> </head>
> <body>
> <form name="Asd" action="asd"></form>
>
> </body>
> </html>
>
> -----------------------------------
>
> It did not complain that <form> has a name.
>
> George.
>
>
> "Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
> news:%23KtzJzEUDHA.560@TK2MSFTNGP10.phx.gbl...> HTML> > Hi all
> >
> > The code generated by the server side control asp:form generates invalid
> > code. The HTML tag FORM always contains attribute "name".
> >
> > When I validate the page with the online validator
> > ([url]http://www.htmlhelp.com/tools/validator/direct.html[/url]) it says that:
> >
> > <form name="browse" method="post" action="browse_employees.a ...
> > ^Error: there is no attribute NAME for this element (in this>> > version)
> >
> >
> >
> > How can I prevent asp:form from generating this attribute?
> >
> >
> >
> > Thanks in advance
> >
> > Vaclav Jedlicka
> >
> >
>
Vaclav Jedlicka Guest
-
George Ter-Saakov #4
Re: asp:form generates invalid code
Why would you care about all that?
There are about 95% of IE out there and a handful of other browsers.
I do knot know even one browser that requires to have TYPE.
George.
"Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
news:%23jyLthFUDHA.2264@TK2MSFTNGP11.phx.gbl...> Thanks
>
> You use HTML 4.01, I used 4.0, that is why I had the problem. I can fix my
> problem by using version 4.01.
>
> May I have another question? I am havening this problem with the validator
> (even with HTML 4.01). The SCRIPT tag is generated by ASP.NET
>
> <script language="javascript">
> ^Error: required attribute TYPE not specified
>
>
>
George Ter-Saakov Guest
-
Vaclav Jedlicka #5
Re: asp:form generates invalid code
Because some customers request valid HTML code.
"George Ter-Saakov" <we@hotmail.com> wrote in message
news:u742h2FUDHA.1868@TK2MSFTNGP11.phx.gbl...my> Why would you care about all that?
> There are about 95% of IE out there and a handful of other browsers.
> I do knot know even one browser that requires to have TYPE.
>
>
>
> George.
>
> "Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
> news:%23jyLthFUDHA.2264@TK2MSFTNGP11.phx.gbl...> > Thanks
> >
> > You use HTML 4.01, I used 4.0, that is why I had the problem. I can fixvalidator> > problem by using version 4.01.
> >
> > May I have another question? I am havening this problem with thespecified> > (even with HTML 4.01). The SCRIPT tag is generated by ASP.NET
> >
> > <script language="javascript">
> > ^Error: required attribute TYPE not>> >
> >
> >
>
Vaclav Jedlicka Guest
-
John Saunders #6
Re: asp:form generates invalid code
Interesting. I haven't met any customers like this. I hope they also request
that the application works...
--
John Saunders
Internet Engineer
[email]john.saunders@surfcontrol.com[/email]
"Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
news:erafBiOUDHA.1324@TK2MSFTNGP11.phx.gbl...fix> Because some customers request valid HTML code.
>
> "George Ter-Saakov" <we@hotmail.com> wrote in message
> news:u742h2FUDHA.1868@TK2MSFTNGP11.phx.gbl...> > Why would you care about all that?
> > There are about 95% of IE out there and a handful of other browsers.
> > I do knot know even one browser that requires to have TYPE.
> >
> >
> >
> > George.
> >
> > "Vaclav Jedlicka" <vjedlicka@iol.cz> wrote in message
> > news:%23jyLthFUDHA.2264@TK2MSFTNGP11.phx.gbl...> > > Thanks
> > >
> > > You use HTML 4.01, I used 4.0, that is why I had the problem. I can> my> validator> > > problem by using version 4.01.
> > >
> > > May I have another question? I am havening this problem with the> specified> > > (even with HTML 4.01). The SCRIPT tag is generated by ASP.NET
> > >
> > > <script language="javascript">
> > > ^Error: required attribute TYPE not>> >> > >
> > >
> > >
> >
>
John Saunders Guest
-
Tian Min Huang #7
Re: asp:form generates invalid code
Hello Vaclav,
I just did a quick search and found that it is a known issue. It seems
you're out of luck. The RenderPostBackScript method implemented in the Page
class is declared as
private and it has the "<script language="javascript"> string hard-coded
into it. Also there are other methods that will output the script tag this
way so as a quick and workaround you could override the rendering of the
Page and do a search & replace operation (<script language="javascript">
----> <script type="text/javascript">) before rendering the contents.
Please feel free to let me know if you have any problems or concerns.
Have a nice day!
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! ¨C [url]www.microsoft.com/security[/url]
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Tian Min Huang Guest



Reply With Quote

