T
Thor W Hammer
In ASP.NET 2.0, it seems to wrap a div around the hidden form fields such as
__ViewState. How do you override this rendering?
__ViewState. How do you override this rendering?
In ASP.NET 2.0, it seems to wrap a div around the hidden form fields such as
__ViewState. How do you override this rendering?
It seems to me that the XTHML schema allows hidden fields inside formhttp://www.aspnetpro.com/newsletterarticle/2005/11/asp200511de_l/asp200511de_l.asp
"ASP.NET 2.0 defaults to XHTML 1.1, but you can also opt for XHTML 1.0
Strict or Transitional. The rendering engine of some controls has been
reworked to make them produce compliant output. As a result, in ASP.NET 2.0,
each control's markup includes a closing tag. Furthermore, the viewstate
hidden field comes surrounded by a <div> tag and the form is only identified
by the ID attribute."
Sounds like they did this for a reason.
Greg
On Tue, 08 Nov 2005 21:03:47 -0500, Greg Burns wrote:
It seems to me that the XTHML schema allows hidden fields inside form
elements. So why do we need the div?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.