
Asp.net
文章平均质量分 68
xiaosongaspnet
从事软件开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
DS两个表结合
ds=MyDesign.EduDesignItems("1"); ds.Tables[0].TableName="itemparent"; ds.Tables[1].TableName="itemchild"; // MyDesign.EduDesignList(Session["UserName"].ToString()); ds.Relations.Add("原创 2006-03-14 09:24:00 · 796 阅读 · 0 评论 -
web程序模板的各种实现方式
现在很多程序为了追求界面的可定制,都提供了模板功能。用户可以选择自己喜欢的界面。模板的实现方法很多,如何找到一个克定制性强且高效率,基本不影响性能的方法呢?我先例举几种都被使用过的方法1、css控制准确的说这种方法不算模板了,就是html是固定的,但提供了多个css文件,完全依赖css来控制背景图片、图片或者表格和层的样式。这个方法的实现我就不说了,非常简单,只要给不同的用户链接不同的css文件就原创 2007-06-28 11:06:00 · 904 阅读 · 0 评论 -
常用代码
添加一个编号列: DataTable dt= c.ExecuteRtnTableForAccess(sqltxt); //执行sql返回的DataTable DataColumn dc=dt.Columns.Add("number",System.Type.GetType("System.String")); for(int i=0;i<dt.Rows.Count;i++) {原创 2006-12-08 16:03:00 · 766 阅读 · 0 评论 -
这段程序谁能看的懂啊?
using System;using System.Xml.Serialization;using System.Configuration;namespace Bzfc.Components{ /// /// Globals 的摘要说明。 /// /// public class Globals { public Globals() { // // TODO: 在此处添原创 2006-05-17 10:25:00 · 862 阅读 · 0 评论 -
Web中DataGrid绑定数据显示列可拖动
Web中DataGrid绑定数据显示列可拖动转载 2006-04-10 09:49:00 · 676 阅读 · 0 评论 -
初学 asp.net
12.Panel 横向滚动,纵向自动扩展 13.回车转换成Tab if(event.keyCode==13 && event.srcElement.type!=button && event.srcElement.type!=submit && event.srcElement.type!=reset && event.srcElement.type!=&& event.转载 2006-03-29 10:12:00 · 908 阅读 · 0 评论 -
DataGrid控件
public class Grid:WebControl,INamingContainer { SqlCmd datacommand=new SqlCmd(); public DataGrid TheGrid=new DataGrid(); public Button delbutton=new Button(); public Button checkall=new Bu原创 2006-03-24 17:53:00 · 880 阅读 · 0 评论 -
Datagrid多行添加刷新时保存原来记录
" width="80">" width="80">" width="80">" width="80">" width="80">using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; usin原创 2006-03-24 17:21:00 · 961 阅读 · 0 评论 -
在后代码里创建DataGrid控件
在后代码里创建DataGrid控件 本文介绍如何用代码创建DataGrid,并且有四个绑定列和一个模板列,支持排序功能。代码如下:C#CreateDataGrid.aspxAutoEventWireup="true" Inherits="aspxWebCS.myDataGrid" %>public void Page_Load(Object sender,EventArgs e){Creat转载 2006-03-24 17:29:00 · 744 阅读 · 0 评论 -
动态创建DataGrid的模版列
有的时候我们需要邦定很复杂的DataGrid,我们知道DataGrid,DataList等控件都有Template列,我们可以通过动态的邦定模版列来实现,复杂逻辑的邦定。由于Page继承TemplateControl,所以在Page对象里面就可以使用TemplateControl类里面的方法LoadTemplate,我们可以利用这个方法加载指定路径用户控件来实现丰富的表示(顺便提一下还有一个转载 2006-03-24 11:30:00 · 781 阅读 · 0 评论 -
类中 引用Session
protected HttpSessionState Session; //--- The page session object protected HttpResponse Response; public void SessionCheck(Object parent) { try { Session=((System.Web.UI原创 2006-03-10 09:49:00 · 934 阅读 · 0 评论 -
汇总c#.net常用函数和方法集
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre原创 2006-03-10 10:01:00 · 630 阅读 · 0 评论 -
ASP.NET程序中常用代码
ASP.NET程序中常用代码关键词: ASP.NET,常用代码 ASP.NET程序中常用代码1. 打开新的窗口并传送参数 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"原创 2006-03-10 09:59:00 · 856 阅读 · 0 评论 -
asp.net 与解压缩
/// ///create the folders that the string defined. /// /// string public string Create_Folder(string folder) { string strSymbol="/"; string temp=folder; string strPath=Server.MapPath(str原创 2006-03-14 09:28:00 · 764 阅读 · 0 评论 -
aspnet_compiler -v/Test -p D:/test D:/DDS预编译
aspnet_compiler -v/Test -p D:/test D:/DDS 预编译 打了sp1找不到生成预编译了 真郁闷 可能是web site 与web app 区别原创 2007-12-21 21:58:00 · 544 阅读 · 0 评论