如何使用SQL Server在MVC 3中从数据库搜索数据 [英] How to search data from a Database in MVC 3 using SQL Server

查看:132
本文介绍了如何使用SQL Server在MVC 3中从数据库搜索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个按钮,一个下拉列表和一个文本框...现在假设我从DropDownlist中选择PersonID并在文本框中写一个Person ID说109876.现在单击搜索按钮后,将显示此人的所有信息在网格中

我必须在MVC 3中开发代码.

任何身体都可以帮忙吗?
!!!!紧急!!!!!

I have a button, a drop down list and a textbox...Now suppose I select PersonID from DropDownlist and Write a Person ID say 109876 in the textbox.Now after clicking the search button all the information of the person will display in a grid

I have to develope the code in MVC 3.

Can any body help?????

!!!!Urgent!!!!!

推荐答案

pl检查以下代码项目文章:

MvcContrib网格分页和在ASP.NET MVC3中搜索 [
pl check the following codeproject article:

MvcContrib Grid Paging and Searching in ASP.NET MVC3[^]


这篇关于如何使用SQL Server在MVC 3中从数据库搜索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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