![](/img/trans.png)
[英]How do I programatically put telerik rad grid in “add new” mode on page load
[英]How do I encrypt the Telerik Rad Editor viewstate?
The viewstate or application's pages are already encrypted but looking at the Burp output of the response from a POST to the Telerik.UI.DialogHandler (ImageMananger) it seems the Telerik view state in the response appears not to be. 見附圖。
We've generated and specified the DialogParametersEncryptionKey, ConfigurationEncryptionKey, and ConfigurationHashKey keys in the site level web.config as described in article https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/security . 這並沒有改變視圖狀態。
IIS 中的機器密鑰設置為自動生成。
我只是假設 Telerik 視圖狀態可以加密,因為我讀過的內容似乎暗示了這一點,但我還沒有找到一個明確的例子,所以我不確定。
您能否將應用程序的 TargetFramework 更改為 4.5 或更高版本並再次測試:
> <compilation debug="false" targetFramework="4.8" />
> <httpRuntime targetFramework="4.8" />
> <pages viewStateEncryptionMode="Always" enableViewStateMac="true">
> <controls>
> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
> </controls>
> </pages>
> <httpHandlers>
還必須在頁面指令或 web.config 中設置 viewStateEncryptionMode="Always" enableViewStateMac="true"。
查看此產品論壇主題以獲取更多信息: https://www.telerik.com/forums/can-the-rad-editor-viewstate-be-encrypted 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.