推荐:Asp.net三层结构中的变量引用与传递Asp.net的 三 层架构主要是为了解决数据层,逻辑层,表示层等之间的关系。 我们的做法是这样的:首先建立一个DataCore的基类。基类里面封装了一些低层的数据库的基本操作,比如说数据库联接,调用存储过程等等。在这里面有一个地方值得注意,通过对一个函数
1:command调用存储过程的时候,如果输出是dataset,selectcommand的command对象的connection先要指出,否则catch一辈子也是空的.. CREATE proc spage @pagesize int, @destpage int as set nocount on declare @id int declare @startid int select @startid = (@destpage - 1)*@pagesize set rowcount @startid select @id = id from [crm_articler] set rowcount @pagesize set nocount off select * from t_member where id > @id order by id GO |
分享:Asp.Net发送电子邮件程序一、 asp.net 1.0及.net1.1中的做法(利用CDOSYS消息组件发送电子邮件): 代码如下: usingSystem; usingSystem.Web.Mail; /// summary /// 用到的类主要位于System.Web.Mail命名空间下 /// /summary publicclassSendMail { publicSendMail() { } ///summary
新闻热点
疑难解答
图片精选