启用级联下拉列表后应用程序中的问题 [英] Problem in the application after enabling cascading dropdownlist

查看:78
本文介绍了启用级联下拉列表后应用程序中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在gridview中启用了级联下拉列表选项并且工作正常。当我尝试选择带有值的下拉列表并添加新行时,它显示无效的回发或回调参数。使用< 启用事件验证 pages enableEventValidation = true / > <%@ EnableEventValidation = true %> in为了安全起见,此功能验证了回发或回调的参数e通风口源自最初呈现它们的服务器控件。如果数据有效且符合预期,请使用ClientScriptManager.RegisterForEventValidation方法注册回发或回调数据以进行验证。。

请帮我解决这个问题。保存按钮时也是如此我也建议你去简单的 DropDownList

不要去Cascade和所有。



处理 SelectedIndexChanged 第一个 DropDownList 并在其中绑定另一个 DropDownList 。就这么简单。


Hi,
I've enabled the cascading dropdownlist option in the gridview and its working fine. When i'm trying to select the dropdownlist with the values and adding the new rows, then it is showing "Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.".

Please help me on this. The same is occuring when saving the button too.

解决方案

So, I would suggest you to go for simple DropDownList. Don't go for Cascade and all.

Handle the SelectedIndexChanged Event of first DropDownList and inside that Bind the other DropDownList. As simple as that.


这篇关于启用级联下拉列表后应用程序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆