下面我将详细讲解在机房收费系统D层中如何对数据库的增加.删除.修改,最后再来总结一下 ExecuteNonQuery(),ExecuteScalar(),ExecuteReader的用法: 一.增.删.改 1. 增加新的记录 Private Sub frmAddUser_Load(sender As Object, e As EventArgs) Handles MyBase.Load { MyConnection.Open();’打开数据库 MyCommand1.CommandText="In…
博客分类: ASP.NET 一. <%%>这种格式实际上就是和asp的用法一样的,只是asp中里面是vbscript或者javascript代码,而在asp.net中是.net平台下支持的语言.特别注意:服务器控件中不能有<%%>语法(这里我用C#代码) <% int a = 2; int b = 3; int c = a + b; Response.Write(c); %> 二. <%#%>如果是这种格式的话那就是asp.net下特有的,它是控件数据绑…
注:时间有点忙,直接copy 过来的,要查看原址: http://www.developer.com/net/dealing-with-json-dates-in-asp.net-mvc.html Introduction Most of the time, data transfer during Ajax communication is facilitated using JSON format. While JSON format is text based, lightweight a…