使用文本框输入详细信息 [英] using a textbox to enter details

查看:92
本文介绍了使用文本框输入详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
我在asp.net网站上有一个文本框,按钮和gridview.我希望用户输入学生的姓名,然后单击按钮,然后在gridview中显示学生的所有详细信息.

sir,
I have one textbox ,button and gridview in asp.net website. i want that if user enter name of the student and when we click the button then all the details of the student shown in gridview.
how it can be possible!

推荐答案

要收集一些想法,您应该看一下下面的讨论: ASP.NET论坛 [^ ]. target ="_ blank" title ="New Window"> ^ ].

问候,

— Manfred
To gather some ideas you should look at this discussion: Add search feature to GridView [^] on ASP.NET Forums[^].

Regards,

— Manfred


那是"ASP.NET中的搜索实现"

您需要先尝试.请执行以下步骤:
1.设计一个页面,在其中放置一些搜索参数.例如,在数据库中搜索名称,然后在文本框中搜索名称.
2.现在,放置一个搜索按钮作为搜索的触发事件.单击搜索按钮,您将在编写逻辑.
3.单击搜索按钮,获取搜索参数(如此处文本框中的名称),使用它,形成查询并在数据库上执行
4.将查询结果返回到数据表中,然后根据需要将其绑定到网格或任何其他适当的控件
5.现在,Datagrid将显示检索到的结果.

完成!
That''s "Search implementation in ASP.NET"

You need to try first. Follow these steps:
1. Design a page where you place few search parameters. For example, searching a name in DB, so a textbox for it.
2. Now, place a search button as the trigger event of the search. On click of search button you would be writing your logic.
3. In search button click, get the search parameters (like the name in textbox here), use it, form a query and execute on database
4. Get the query result back in a datatable and bind it to a grid or any other appropriate control based on your needs
5. For now, Datagrid will display the retrieved result.

Done!


这篇关于使用文本框输入详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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