摘要: 阅读全文
posted @ 2005-09-01 12:31 浪剑 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 一:header.asc 二:header.asc.csnamespace s2p.Application.Teacher.Controls{ using System; using System.Data; using System.Drawing; using System.Web; using System.Web.UI; using System.Web.UI... 阅读全文
posted @ 2005-08-31 17:16 浪剑 阅读(546) 评论(0) 推荐(0) 编辑
摘要: /// /// 设置DataGrid的pager格式 /// /// 需要处理的DataGrid /// DataGride的ItemCreated事件参数 public static void DataGridPageSet(DataGrid dgMain, System.Web.UI.WebControls.DataGridItemEventArgs e) { if(e... 阅读全文
posted @ 2005-08-31 00:56 浪剑 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 一、常量定义问题public static string IsScorePubSMSedSchoolID="*****"; public static string IsScorePubSMSedCity="***";二、获得两个时间之间的周数 public int DateDiffWeek(DateTime StartTime,DateTime EndTime){ System.Globa... 阅读全文
posted @ 2005-08-31 00:55 浪剑 阅读(437) 评论(0) 推荐(0) 编辑
摘要: /// /// 获得时间建立的语音文件名的时间部分 /// /// public string GetFileName(){ string NowDateFileName=""; DateTime dt=DateTime.Now; NowDateFileName=dt.Year.ToString(); if(dt.Month.ToString().Length==1... 阅读全文
posted @ 2005-08-31 00:50 浪剑 阅读(367) 评论(0) 推荐(0) 编辑
摘要: /// /// 执行多条SQL语句,事务处理 /// /// 以";"相隔的查询语句 public bool InsertMoreDB(string strSQL){ char[] de={';'}; string strChildSQL; int i; string[] strSQLArr=strSQL.Split(de); bool IsControll=t... 阅读全文
posted @ 2005-08-31 00:46 浪剑 阅读(1705) 评论(0) 推荐(0) 编辑
摘要: /// /// 返回一个单独值 /// /// 查询语句 /// SQL语句结果,单值。 public string GetDBValue_ex(string strSQL) { string ret=""; SqlConnection oConn=DBCreateCN(); SqlCommand oCmd=new SqlCommand(strSQL,oConn);... 阅读全文
posted @ 2005-08-31 00:44 浪剑 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: 一、基类源代码using System;using System.Web.SessionState; namespace s2p.Application.Teacher{ /// /// 用于测试的自动赋予session的页面基类 /// public class BasePage:System.Web.UI.Page { public BasePage() { // // TOD... 阅读全文
posted @ 2005-08-31 00:40 浪剑 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 一、aspx的部分代码; ... 阅读全文
posted @ 2005-08-31 00:34 浪剑 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 在事件ItemDataBound中进行灵活控制。此事件在数据绑定后执行。 private void Datagrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if(e.Item.ItemIndex>=0){ e.Item.Cells[7].Text=Unit.P... 阅读全文
posted @ 2005-08-31 00:23 浪剑 阅读(490) 评论(0) 推荐(0) 编辑