ASP.NET,JQUERY [英] ASP.NET,JQUERY

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

问题描述

< small>我有3个下拉列表和一个表单中的网格。

我使用jquery将数据填充到下拉列表中,第三个下拉列表中有一个autopostback事件和selected_indexchanged事件。



当我从第3个下拉列表中选择一个值时,所有下拉列表数据都会消失但这根本不公平。



我希望数据不会从任何下拉列表中消失,在从第三个下拉列表中选择数据后,它将转到selected_indexchanged事件并将数据弹出到gridview。< / small>

<small>I have 3 dropdownlist and a grid in a form.
I used jquery to populate data to the dropdownlist and 3rd dropdownlist have a autopostback event and selected_indexchanged event.

when I select a value from 3rd dropdownlist then all dropdownist data vanished but this is not fair at all.

I want that data will not be vanished from any dropdownlist and after selecting data from third dropdownlist it will go to the selected_indexchanged event and will popuate data to gridview.</small>

推荐答案

您好,

在更新面板中添加第3个下拉菜单和网格。如果由于布局而无法进入同一更新面板,请使用更新面板触发器。

Add your 3rd dropdown and the grid inside a updatepanel. If the both are not possible to get inside the same update panel because of the layout, use the update panel trigger for this purpose.

 


这篇关于ASP.NET,JQUERY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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