摘要: 定义Static后的类或方法,在程序编译以后直接进驻内存。用的时候不需要从新声明。 阅读全文
posted @ 2012-11-01 08:11 xiaoxu1987 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 主要是用于在后期维护时使两个接口不同的类通过适配器可以通信 阅读全文
posted @ 2012-11-01 08:11 xiaoxu1987 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Response.Write(" <script> window.opener=null;window.close(); </script> "); 关闭当前页面Response.Write(" <script> window.opener.location= 'gridv.aspx';window.close(); </script> "); 重新调用另一个页面 阅读全文
posted @ 2012-08-20 16:58 xiaoxu1987 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 由于GridView如果动态添加模版列的话,在页面做其他事件时GridView又变为初始状态,所以需要在页面On_InIt里动态绑定上using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Web.UI.WebControls;using System.Web.UI;namespace ZJXTWEB.Public{ public class GridViewTemplate : ITemplate { ... 阅读全文
posted @ 2012-08-20 16:56 xiaoxu1987 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 今天做往gridview列里动态添加textbox控件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { for (int i = 1; i <Gvd_Table.Columns.Count; i++)//序号以外的列 { TableCell tc = e.Row.Cells[i]; if (tc.Text.Trim() == "&nbsp;")//判断只要地区或区块不为空就跳过 { TextBox tb = new TextBox(); tb.ID = 阅读全文
posted @ 2012-08-02 16:21 xiaoxu1987 阅读(260) 评论(0) 推荐(0) 编辑