如何在单个视图中处理两个或多个下拉列表框和按钮之间的多个回发 [英] How Do I Handle multiple Post Backs Between Two or More Dropdown List Boxes and the Button In Single View

查看:58
本文介绍了如何在单个视图中处理两个或多个下拉列表框和按钮之间的多个回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我是MVC的新手,



我应该管理三个我的单一视图页面中的DropDownListBox ,让它为



Scheme_category

<DDL1>




<scheme_item 1="">
<scheme_item 2="">
......
<scheme_item n="">









Fund_category

<DDL2>




<fund_item 1="">
<fund_item 2="">
......
<fund_item n="">









Payment_Category

<DDL3>







<payment_item 1="">
<payment_item 2="">
......
<payment_item n="">







1 。如果我点击 DDL1 中的任何一个Scheme_item意味着, DDl2 DDL3 应根据<的条件自动加载相关的类别项目。 b> DDL1 (这意味着Postback应该在那里完成)



(否则)



如果我点击任何DDL的项目,其他两个DDL应该自动加载他们的项目,具体取决于条件ns





2.之后我必须通过button_click提交页面(回复将在这里完成)





我的问题是:应该进行多次回发,但不同的控件如( DDL1,DDL2,DDL3和BUTTON



如何在同一个视图页面中处理多个回发,帮帮我









注意:三个DropDownList盒子和按钮放在同一个视图页面。



谢谢你提前,



Velsamy A




1. If i click anyone of the Scheme_item from DDL1 means, DDl2 and DDL3 should load their related category items by automatically depending upon the condition of DDL1 (It means Postback should be done in there itself)

(or else)

If I click anyone of the DDL's item, other two DDLs should Load their items ,automatically depending upon the conditions


2. after that i have to submit the page through the button_click(postback will be done here)


my Question is : Multiple Postbacks should be done , but different controls like( DDL1,DDL2,DDL3 and BUTTON

How can i handle the multiple postbacks in same view page, help me




note: three DropDownList Boxes and button are placed in Same view page.

Thanks In Advance,

Velsamy A

推荐答案

这篇关于如何在单个视图中处理两个或多个下拉列表框和按钮之间的多个回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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