开发者

repeater control when javascript is off

I have a repeater which nests one or more custom control instances. Each custom control instance has a drop down and a button called "Update".

This all works fine when JS is on.

However with JS off, I get the "Invalid postback or callback argument. Event validation is enabled..." error.

Thinking about this, I imagine the following is happening:

ASP.NET creates ViewState for the page. When the page is posted back, the viewstate should be passed back to the page via the js hooks that ASP.NET puts in place.

However, because JS is OFF, this isn't passed back. ASP.NET then flags a mismatch between the ViewSt开发者_如何学Cate that it expects, and the Viewstate that it receives.

Is this correct?

In which case, what is the recommended action that I take?

Thanks


try to set EnableEventValidation="False" or ValidateRequest="False". hope it will work.

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜