On 3 Jan 2007 07:48:00 -0800,
(E-Mail Removed) wrote:
> Hello,
> I have a aspx page in which I would like to eliminate all of
> the hidden variables as this page would be imported to an email client
> and the hidden controls are usually rendered in the mail client. The
> asp.net form does have the form input hidden control inspite the
> viewstate is disabled at the page level. Isnt there a way to eliminate
> it? And, as per my understanding, it just cant be eliminated. Now, I
> was trying to parse the page treating it as a XML doc and remove the
> hidden control. The problem there would be - there is no guarantee that
> the XML document is well formed as the page contains formatted text and
> might miss some of the closing tags. Is there a better way to get rid
> of the input hidden form level viewstate ( ID = "__VIEWSTATE") ?
>
> Thanks,
> Sam.
You'll probably run into problems trying to get a XML compliant document
from a HTML page unless you go out of your way to make the page compliant.
If you really need to eliminate the viewstate you could use a regular
expression to find and remove it.
--
Bits.Bytes
http://bytes.thinkersroom.com