0

I have RadGrid on an ascx control with one ImageButton in TemplateColumn. ImageButton has CommandName=”Edit”. So when I click the image button it sets the grid in Edit mode. I have some code on ItemDataBound event of grid that works if e.Item.IsInEditMode is true.

The whole thing works on local but when I deploy the code on TEST environment then it doesn’t work. After putting some log statements I found out that on this environment when user clicks Imagebutton it doesn’t set the grid in Edit mode and e.Item.IsInEditMode is never true.

I have 2 different Test environments, this functionality works on one the Test environment but not on another one. Both the servers have same windows update and IIS configuration.

any idea what else can cause this problem?

additional Info: I am using SessionPageStatePersister for view state

4

1 回答 1

0

我只是想出了这个。在其中一台服务器上,我的 web.config 在 httpCookies 元素中有错误的域名。它与实际域名不同。这就是视图状态不起作用的原因。

于 2012-10-16T15:53:30.280 回答