摘要:
使用application对象显示在线人数,Global.asax文件using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Security;using Sy... 阅读全文
摘要:
ado.net中常用数据库操作方法:(1)SqlDataReader(数据库只读操作) 提供一种从 SQL Server 数据库读取行的只进流的方式,它既然提供只读属性,那么显然当只需要执行读取操作的时候执行,在执行select语句的时候很有必要, 因为,就执行效率而言,DataReader的... 阅读全文
摘要:
仅供参考使用!!!!!! protected void Page_Load(object sender, EventArgs e) { private string selectCourse; if (!IsPostBack) { ... 阅读全文
摘要:
如何通过GridView向数据库提交数据?1.在GridView 中如何插入其他类型控件时,通过插入TextBox服务器控件 ... 阅读全文
摘要:
在asp开发中,时常遇到向程序中写入HTML代码的情况,以在ashx中写入HTML为例,演示Nvelocity的使用, 1 VelocityEngine vltEngine = new VelocityEngine(); 2 //文件型模板,还可以是 assembly... 阅读全文