在asp.net C#中搜索 [英] search in asp.net c#

查看:51
本文介绍了在asp.net C#中搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 如何在Asp.net c#中编码搜索和更新代码?

解决方案

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

试试吧!



这是您要寻找的东西-
带有ASP.NET/C#的静态站点搜索引擎 [ ^ ]

But, I will suggest you try it yourself first.


hi how to code search and update in Asp.net c#?

解决方案

You need to try first. To start with, 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, Gridview will display the retrieved result.

Try!


Hi,
here is what you looking for-
Static-Site Search Engine with ASP.NET/C#[^]

But, I will suggest you try it yourself first.


这篇关于在asp.net C#中搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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