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

问题描述

你好!

我是ASP.NET的初学者.我正在创建一个学生注册页面,其中包含大量信息.之后,将其输入数据库.现在,我想创建一个数据视图,显示所有记录,如每页20条.除此之外,我主要关心的是执行搜索.我希望用户能够使用众多条件来搜索记录.因此,我无法继续为用户希望搜索的所有条件创建下拉框和文本框.

我的问题是:
我知道这是可能的,但我不知道如何,我希望用户单击搜索按钮,整个数据视图将变为空白,只有1行类似于插入行.用户将在他希望的任何字段中输入任何条件.按提交时,应用程序将检查所有条件并返回相应的数据,然后再次填充数据视图.

我认为这是早先用于数据网格的.请协助.这很紧急.

预先感谢.

Hi there!

I am a beginner in ASP.NET. I am creating a student registration page with a ton of information to be added. After, this is entered into the db. Now, i want to create a data view showing all the records like 20 per page. Apart from that, my main concern is implementing the searching. I want the user to be able to search the records using numerous criteria. Therefore, i cannot keep making drop boxes and text boxes for all the criteria the user would wish to search against.

My question is:
I know this is possible but i don''t know how, i want the user to click a search button, where the whole data view will become blank except 1 row which will be like an insert row. The user will enter whatever criteria in whatever fields he wishes. On pressing submit, the application will check all the criteria and return the corresponding data and again fill the data view.

I think this was used earlier with the data grid. Kindly assist. This is very urgent.

Thanks in advance.

推荐答案



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

08-30 13:45