本文介绍了asp.net项目中的数据集上的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个全局声明的数据集
我有一个组合框.
当我单击组合框时,它将获取数据并设置到数据集中..
我有一个按钮
当我单击按钮时,我需要数据集的值.
我在写

I have a dataset which has declare globally
I have a combobox.
when I click on combo box it fetch the data and set into the dataset..
I have a button
When i click on the button I need the value of dataset.
I am writing

DataRow[] dr = dsAdv.Tables[0].Select("Advisor_Id=" + cmbAdvisorNameCode.SelectedValue.ToString());





//Here dsAdv is my dataset which declare globally



但是当我单击按钮时,它显示错误,因为数据无法提取
它显示Table [0]没有值.

请帮我解决这个问题.
紧急.
否则,请告诉我,我可以在同一页面中使用全局数据集吗?

谢谢.



but when I click button then it showing error, because data could not fetch
It showing Table[0] has no value.

please help me how to solve this problem.
It''s urgent.
other wise please tell me woh can I use global dataset in the same page.

Thanks.

推荐答案



这篇关于asp.net项目中的数据集上的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 08:33