G
Guest
I have an ASP.NET page that my client wants to e-mail. So in IE we choose
File > Send > Page by E-mail, which opens up either Outlook or Outlook
Express with the HTML page content as the message body.
EXCEPT one nasty detail is that in the e-mail client, <input type="hidden">
elements are rendered as text boxes, which the __VIEWSTATE is one of, and so
the viewstate is displayed in a textbox at the top of the e-mail.
I've figured out some overrides and stuff to ensure that the textbox is
empty, so the HTML renders
<input type="hidden" name="__VIEWSTATE" value="">
but this still displays an empty TextBox.
Is there any way to prevent the HTML element from being written at all? I
found an interesting explanation of why it's hard at this address:
http://scottonwriting.net/sowblog/posts/1608.aspx
But couldn't translate that into a solution.
File > Send > Page by E-mail, which opens up either Outlook or Outlook
Express with the HTML page content as the message body.
EXCEPT one nasty detail is that in the e-mail client, <input type="hidden">
elements are rendered as text boxes, which the __VIEWSTATE is one of, and so
the viewstate is displayed in a textbox at the top of the e-mail.
I've figured out some overrides and stuff to ensure that the textbox is
empty, so the HTML renders
<input type="hidden" name="__VIEWSTATE" value="">
but this still displays an empty TextBox.
Is there any way to prevent the HTML element from being written at all? I
found an interesting explanation of why it's hard at this address:
http://scottonwriting.net/sowblog/posts/1608.aspx
But couldn't translate that into a solution.