下拉列表和Gridview [英] Dropdownlist and Gridview

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

问题描述

你好朋友,

在我的网络表单上,我有一个下拉列表和一个gridview.

并将数据加载到Gridview中.当我从下拉列表中选择项目时,它会在gridview中显示特定记录...有关在gridview中选择和显示的一切都可以.

但是这里的问题是,当我从下拉列表中选择项目时,它会在一段时间后正确显示,但是会返回到起始页面---- Select -----


请帮我.我是初学者.

谢谢,

hello Frnds,

On my webform i have dropdownlist and a gridview.

and am Loaded Data into Gridview. and when i select item from dropdown list it displays that particular records in gridview...everything is ok about selecting and displaying in gridview.

But the thing here is that, when i select item from dropdown list it displays correctly BUT after sometime it comes back to the starting page to ----Select-----


Please help me. am beginner.

Thanks,

推荐答案



将下拉代码放入if!ispostback){}

试试吧..



Regasrds,
索拉(Saurabh)


put you dropdown code in if!ispostback) { }

try it..



Regasrds,
Saurabh


这篇关于下拉列表和Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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