随笔分类 -  asp.net 2.0

这些都是本人在开发ASP.NET 网站时遇到的小问题.
Asp.net 2.0开发网站中的三层架构
摘要:Asp.net 2.0开发网站中的三层架构 新一篇: 数据库连接字符串 三层架构分别是数据访问层 database access layer,业务逻辑层business logic layer,用户表现层(用户接口层) user interface layer.简称分别为DAL,BLL,UIL. 数据访问层主要是提供一些通用的对数据库进行操作的函数。业务逻辑层则调用这些函数完成某些功能,而用户... 阅读全文
posted @ 2008-05-08 17:02 学习林 阅读(568) 评论(1) 推荐(0)
在Textbox中想其要显示出分段
摘要:1"要改其TextMode="MultiLine" . 2"要在数据库中的列项中设置为:Text 阅读全文
posted @ 2008-05-08 16:50 学习林 阅读(96) 评论(0) 推荐(0)
DateTime的使用
摘要:DateTime aaa = new DateTime(); aaa = System.DateTime.Now; string aaa7 = aaa.ToString("d"); 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTim... 阅读全文
posted @ 2008-05-08 16:47 学习林 阅读(106) 评论(0) 推荐(0)
获取GridView的值
摘要:int index = e.RowIndex; GridViewRow gvr = GridView1.Rows[index]; ST_myid = gvr.Cells[0].Text; 阅读全文
posted @ 2008-05-08 16:46 学习林 阅读(250) 评论(0) 推荐(0)
公告板的代码:
摘要:' __designer:wfdid="w11"> ' __designer:wfdid="w12"> 阅读全文
posted @ 2008-04-17 03:41 学习林 阅读(505) 评论(0) 推荐(0)
SqlDataReader的代码:
摘要:string settings = Convert.ToString(ConfigurationManager.ConnectionStrings["ShoppingConnectionString"]); SqlConnection myconn = new SqlConnection(settings); myconn.Open(); SqlCommand mycmd = new SqlCom... 阅读全文
posted @ 2008-04-17 03:39 学习林 阅读(304) 评论(0) 推荐(0)
SqlDataAdapter的代码:
摘要:string settings = Convert.ToString(ConfigurationManager.ConnectionStrings["netshopConnectionString"]); SqlConnection conn = new SqlConnection(settings); string mysql = "select * ... 阅读全文
posted @ 2008-04-17 03:38 学习林 阅读(118) 评论(0) 推荐(0)