ASP.NET C#中的级联下拉列表 [英] Cascading dropdownlist in ASP.NET C#

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

问题描述

我在html页面中有3个下拉列表我怎么能在每次选择第一个填充第二个时丢弃这些下拉但是当我选择第二个并使用fiddler跟随我发现它得到错误505因为视图状态总是每次更改所选项目更改我怎样才能正确解决这个问题?如果我需要的话,我正在使用杂乱的尖锐和有时候的html敏捷性



我尝试了什么:



< dropdownlist id =1>

< dropdownlist id =2>

< dropdownlist id = 3>

i have 3 Drop down List in html page how can i scrap these drop down each time i select the first it fill the second but when i select the second and use fiddler to follow i find it gets error 505 because view state always change every time in selected item changed how can i solve this problem correctly ?? i am using scrappy sharp and some times html agility if i need that

What I have tried:

<dropdownlist id="1">
<dropdownlist id="2">
<dropdownlist id="3">

推荐答案

该错误可以阻止人们正确地执行您正在尝试的操作 - 提交包含未知/无效值的表单。 />


除非你能让网站所有者合作,否则你无能为力。
That error is there to stop people from doing precisely what you're trying to do - submit the form with unknown / invalid values.

Unless you can get the site owners to cooperate, there's nothing you can do to avoid this.


这篇关于ASP.NET C#中的级联下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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