<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Can I delete the attribute NAME from the FORM tag?</title><link>http://forums.asp.net/thread/3477418.aspx</link><pubDate>Mon, 26 Oct 2009 14:56:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3477418</guid><dc:creator>Jorgitto</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3477418.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=3477418</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Add &amp;lt;xhtmlConformance mode=&amp;quot;Strict&amp;quot; /&amp;gt; under the &amp;lt;system.web&amp;gt; in the web.config&lt;/p&gt;</description></item><item><title>Re: Can I delete the attribute NAME from the FORM tag?</title><link>http://forums.asp.net/thread/1883760.aspx</link><pubDate>Thu, 30 Aug 2007 03:38:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1883760</guid><dc:creator>StevenPaul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1883760.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1883760</wfw:commentRss><description>&lt;p&gt;Insert the tag prefix for the control below the Page declaration&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;&amp;lt;% &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;@&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;Register&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;TagPrefix&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;MyTagPrefix&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Namespace&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;MyAssemblyNamespace&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Assembly&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;MyAssembly&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; %&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;MyTagPrefix&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;CustomForm&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;aspnetForm&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;font color="#a31515"&gt;MyTagPrefix&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;CustomForm&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;    &lt;span class="kwd"&gt;public class&lt;/span&gt; CustomForm : HtmlForm
    {
        &lt;span class="kwd"&gt;protected override void&lt;/span&gt; RenderAttributes(HtmlTextWriter output)
        {
            output.WriteAttribute(&lt;span class="st"&gt;&amp;quot;id&amp;quot;&lt;/span&gt;, &lt;span class="kwd"&gt;this&lt;/span&gt;.ID);
            output.WriteAttribute(&lt;span class="st"&gt;&amp;quot;method&amp;quot;&lt;/span&gt;, &lt;span class="kwd"&gt;this&lt;/span&gt;.Method);
            output.WriteAttribute(&lt;span class="st"&gt;&amp;quot;action&amp;quot;&lt;/span&gt;, HttpContext.Current.Request.Path);
            output.WriteAttribute(&lt;span class="st"&gt;&amp;quot;runat&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;);
        }
        &lt;span class="kwd"&gt;protected override&lt;/span&gt; System.Collections.IDictionary GetDesignModeState()
        {
            
            &lt;span class="kwd"&gt;return base&lt;/span&gt;.GetDesignModeState();
        }
    }&lt;/pre&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Can I delete the attribute NAME from the FORM tag?</title><link>http://forums.asp.net/thread/1883752.aspx</link><pubDate>Thu, 30 Aug 2007 03:32:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1883752</guid><dc:creator>StevenPaul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1883752.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1883752</wfw:commentRss><description>&lt;p&gt;Yes, but you don&amp;#39;t delete the attribute, instead create a new HtmlForm class, override&amp;nbsp;RenderAttributes and use the output writer to &amp;#39;write in&amp;#39; the attributes you&amp;nbsp;need - omitting the name attribute.&lt;/p&gt;
&lt;p&gt;You will need to register the form control&amp;nbsp;within the page your intending to use.&lt;/p&gt;
&lt;p&gt;Be warned: The client JavaScript natively rendered will be affected by this change as it uses the name attribute for PostBack and CallBack events.&lt;/p&gt;
&lt;p&gt;My advice would be to use Transitional rather than Strict.&lt;/p&gt;
&lt;p&gt;You can also use a ControlAdapter, but this again creates the same problems if your going to rely on native ASP.NET behaviour&lt;/p&gt;</description></item><item><title>Can I delete the attribute NAME from the FORM tag?</title><link>http://forums.asp.net/thread/1883732.aspx</link><pubDate>Thu, 30 Aug 2007 03:12:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1883732</guid><dc:creator>gporras</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1883732.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1883732</wfw:commentRss><description>&lt;p&gt;Hello...&lt;/p&gt;&lt;p&gt;I have a APSX page with a form. My page validate with &lt;span class="doctype"&gt;XHTML 1.1.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The form tag is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;Contact&amp;quot; method=&amp;quot;post&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;When I see the page in the browser this form tag is:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span class="start-tag"&gt;form&lt;/span&gt;&lt;span class="attribute-name"&gt; name&lt;/span&gt;=&lt;span class="attribute-value"&gt;&amp;quot;aspnetForm&amp;quot; &lt;/span&gt;&lt;span class="attribute-name"&gt;method&lt;/span&gt;=&lt;span class="attribute-value"&gt;&amp;quot;post&amp;quot; &lt;/span&gt;&lt;span class="attribute-name"&gt;action&lt;/span&gt;=&lt;span class="attribute-value"&gt;&amp;quot;default.aspx&amp;quot; &lt;/span&gt;&lt;span class="attribute-name"&gt;&lt;/span&gt;&lt;span class="attribute-value"&gt;&lt;/span&gt;&lt;span class="attribute-name"&gt;id&lt;/span&gt;=&lt;span class="attribute-value"&gt;&amp;quot;aspnetForm&amp;quot;&lt;/span&gt;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The .Net 2.0 added the attribute name.&lt;/p&gt;&lt;p&gt;When I validate my page with the HTML Validator (http://validator.w3.) I get this error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This page is &lt;strong&gt;not&lt;/strong&gt; Valid XHTML 1.1!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
        &lt;em&gt;Line 80, Column 16&lt;/em&gt;:
        &lt;span class="msg"&gt;there is no attribute &amp;quot;name&amp;quot;&lt;/span&gt;: &lt;code class="input"&gt;&amp;lt;form name=&lt;strong&gt;&amp;quot;&lt;/strong&gt;aspnetForm&amp;quot; method=&amp;quot;post&amp;quot;..&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;How I delete this NAME attrbiute that is added by .Net?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks!&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>