通过类库与GridView控件连接 [英] connection with GridView control through class library

查看:101
本文介绍了通过类库与GridView控件连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过用C#语言编写的类库与asp.net中的Grid View控件建立连接?

How to make connection with Grid View control in asp.net through class library Written in C#?

推荐答案

与ASP中的Grid View控件建立连接.通过C#编写的类库实现网络

让我想出一个关于你说的话的场景.您有一个业务逻辑层或一个数据库层,它与数据库进行对话并向您返回数据.您已经获得了此层的C#``dll'',并且您想使用它来填充datagrid.

现在,为此:
1.在您的项目中引用dll
2.您不能在该DLL中创建该类的对象
3.使用对象,访问各种公开的方法.
4.根据这些方法从DB获取数据
5.使用从数据库返回的数据显示在Grid中.

试试吧!
connection with Grid View control in asp.net through class library Written in C#

Let me come up with a scenario on what you are saying. You have a Business Logic Layer or a Database Layer that does the talking to DB and returns back data to you. You have been given a C# ''dll'' of this layer and you want to use it to populate datagrid.

Now, for this:
1. Refer the dll in your project
2. You can not create an object of the class(es) in that DLL
3. using objects, access the various exposed methods.
4. Based on the methods get the data from DB
5. Use the returned data from DB to show in Grid.

Try!


这篇关于通过类库与GridView控件连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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