总页面刷新,当从下拉列表中选择一项时.

问题描述:

亲爱的FrNdZ !!

在我的Webform上,我有一个下拉列表和一个Gridview ..,以便从下拉列表中选择一项并在GRIDVIEW中显示特定记录.

并将下拉回发设置为TRUE.


因此,当我从DropdownList Complete页面中选择一项时,正在刷新.我不需要完整的页面刷新.

请任何人都可以解决这个问题.

谢谢,当我从DropdownList中选择一项时,

Dear FrNdZ !!

On my Webform I have a Dropdownlist and a Gridview.., to Select one item from dropdown and display that particular records in GRIDVIEW.

and also gave dropdown postback to TRUE.


so, when i select one item from DropdownList Complete page is REFRESHING. I dont need complete page refresh.

Please can anybody can solve this problem.

Thanks,

正在刷新页面.我不需要完整的页面刷新
听起来您需要部分页面更新.您需要使用AJAX:
您去了:
MS:AJAX视频 [ ^ ]
Ajax教程 [ ^ ]
AJAX概述 [什么是ASP.NET Ajax? [ UpdatePanel控件 [ UpdatePanel类 [
when i select one item from DropdownList Complete page is REFRESHING. I dont need complete page refresh
Sounds like you need partial page update. You need to use AJAX:
Here you go:
MS: AJAX Videos[^]
Ajax tutorials[^]
AJAX overview[^]
What is ASP.NET Ajax?[^]

Keeping small things aside, in short, you need to put your Grid in an Udpate Panel to enable partial rendering:
UpdatePanel control[^]
UpdatePanel Class[^]
All you need to know with sample code is present and explained.