本文介绍了取消viewstate __viewstate渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户想要通过电子邮件发送的ASP.NET页面。所以在IE中我们选择

文件>发送>电子邮件页面,打开Outlook或Outlook

Express,HTML页面内容作为邮件正文。


除了一个令人讨厌的细节是在电子邮件客户端中,< input type =" hidden">

元素呈现为文本框,其中__VIEWSTATE是其中之一,因此

视图状态显示在电子邮件顶部的文本框中。


我已经找到了一些覆盖和确保文本框为
$ b的东西$ b为空,因此HTML呈现


< input type =" hidden"命名= QUOT; __ VIEWSTATE"值="">


但是这仍然显示一个空的TextBox。


有没有办法阻止HTML元素正在写作?我b $ b发现了一个有趣的解释,为什么它在这个地址很难:



但是无法将其转化为解决方案。


-

杰森


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.

--
Jason
www.pettysconsulting.com

推荐答案







这篇关于取消viewstate __viewstate渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:45
查看更多