在GridView分页时,维护CheckBoxes控件的选择状态
摘要:在GridView分页时,维护CheckBoxes控件的选择状态 [日期:2007-03-16] 来源:http://www.cnmaster.net 作者:cnmaster [字体:大 中 小] 在GridView分页时,维护CheckBoxes控件的选择...
阅读全文
posted @
2008-03-06 11:35
阿龍
阅读(320)
推荐(0)
GridView当数据源为空时如何实现显示表头
摘要:http://hi.baidu.com/zoujh1983
阅读全文
posted @
2008-03-02 17:23
阿龍
阅读(592)
推荐(0)
IIS配置问题:出现了Failed to access IIS metabase的错误
摘要:IIS配置问题:出现了Failed to access IIS metabase的错误 前几天下了个微软的快速入门教程.在自己机子上打开没什么问题.到实验室电脑上就打不开了.出现了以下错误: 出现了Failed to access IIS metabase Google了一下就找到了解决办法. (Google百度真的是什么都能找到~~ 我想编程中我能遇到的问题, 别人肯定都遇到过.在网上肯定...
阅读全文
posted @
2008-01-25 13:49
阿龍
阅读(206)
推荐(0)
成绩管理系统之第二次评量
摘要:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We...
阅读全文
posted @
2007-07-21 18:51
阿龍
阅读(394)
推荐(0)
ASP.NET 程序中常用的三十三种代码(14)
摘要:function gook(pws) { frm.submit(); } //--> </SCRIPT> <body leftMargin="0" topMargin="0" onload="Javascript:gook()" marginwidth="0" marginheight="0"> <form name="frm" action=" http://220.194.55.68:...
阅读全文
posted @
2007-07-21 11:31
阿龍
阅读(121)
推荐(0)
ASP.NET 程序中常用的三十三种代码(13)
摘要:} 添加一个编号列: 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++) { dt.R...
阅读全文
posted @
2007-07-21 11:30
阿龍
阅读(142)
推荐(0)
ASP.NET 程序中常用的三十三种代码(12)
摘要:先定义变量 : public static int pageCount; //总页面数 public static int curPageIndex=1; //当前页面 下一页: if(DataGrid1.CurrentPageIndex < (DataGrid1.PageCount - 1)) { DataGrid1.CurrentPageIndex += 1; curPageIndex...
阅读全文
posted @
2007-07-21 11:29
阿龍
阅读(108)
推荐(0)
ASP.NET 程序中常用的三十三种代码(11)
摘要:var p = txts[txts.length-2].value; if (isNaN(q) isNaN(p)) return; q = parseInt(q); p = parseFloat(p); txts[txts.length-1].value = (q * p).toFixed(2); } </script> 24.datagrid选定比较底下的行时,为什么总是刷新一下,然...
阅读全文
posted @
2007-07-21 11:28
阿龍
阅读(133)
推荐(0)
ASP.NET 程序中常用的三十三种代码(10)
摘要:</ItemTemplate> </ASP:TemplateColumn> <ASP:TemplateColumn HeaderText="单价"> <ItemTemplate> <ASP:TextBox id="DanJian" runat=’server’ Text=’<%# DataBinder.Eval(Container.DataItem,"DG_DanJian")%>’ onkeyup...
阅读全文
posted @
2007-07-21 11:26
阿龍
阅读(134)
推荐(0)
ASP.NET 程序中常用的三十三种代码(9)
摘要:在你的menuData.XML文件的菜单项中加入URLTarget="_blank",如: <?XML version="1.0" encoding="GB2312"?> <MenuData ImagesBaseURL="images/"> <MenuGroup> <MenuItem Label="内参信息" URL="Infomation.ASPx" > <MenuGroup ID="BBC">...
阅读全文
posted @
2007-07-21 11:24
阿龍
阅读(98)
推荐(0)
ASP.NET 程序中常用的三十三种代码(8)
摘要:【<%#Container.DataItem("price")%>的结果是500.0000,怎样格式化为500.00?】 <%#Container.DataItem("price","{0:¥#,##0.00}")%> int i=123456; string s=i.ToString("###,###.00"); 18.日期格式化 【ASPx页面内:<%# DataBinder.Eval(C...
阅读全文
posted @
2007-07-21 11:24
阿龍
阅读(112)
推荐(0)
ASP.NET 程序中常用的三十三种代码(7)
摘要:<HEADERSTYLE wrap="False" horizontalalign="Center"></HEADERSTYLE> <ITEMTEMPLATE> <ASP:CHECKBOX id="chkEXPort" runat="server" /> </ITEMTEMPLATE> <EDITITEMTEMPLATE> <ASP:CHECKBOX id="chkEXPortON" runat=...
阅读全文
posted @
2007-07-21 11:23
阿龍
阅读(144)
推荐(0)
ASP.NET 程序中常用的三十三种代码(6)
摘要:13.回车转换成Tab<script language="Javascript" for="document" event="onkeydown"> if(event.keyCode==13 && event.srcElement.type!=’button’ && event.srcElement.type!=’submit’ && event.srcElement.type!=’re...
阅读全文
posted @
2007-07-21 11:21
阿龍
阅读(81)
推荐(0)
ASP.NET 程序中常用的三十三种代码(5)
摘要:/// </retvalue> /// </summary> public static String FormatException(Exception ex, String catchInfo) { StringBuilder strBuilder = new StringBuilder(); if (catchInfo != String.Empty) ...
阅读全文
posted @
2007-07-21 11:18
阿龍
阅读(149)
推荐(0)
ASP.NET 程序中常用的三十三种代码(4)
摘要:using System.DiagnostiCS; using System.IO; using System.Text; using System.Threading; namespace MyEventLog { /// <summary> /// 事件日志记录类,提供事件日志记录支持 /// <remarks> /// 定义了4个日志记录方法 (error, war...
阅读全文
posted @
2007-07-21 11:17
阿龍
阅读(74)
推荐(0)
ASP.NET 程序中常用的三十三种代码(3)
摘要:9.获取错误信息并到指定页面 不要使用Response.Redirect,而应该使用Server.Transfer e.g // in global.asax protected void Application_Error(Object sender, EventArgs e) { if (Server.GetLastError() is HttpUnhandledException) S...
阅读全文
posted @
2007-07-21 11:14
阿龍
阅读(145)
推荐(0)
ASP.NET 程序中常用的三十三种代码(2)
摘要:{ string OrderItemID =e.item.cells[1].Text; ... e.item.Attributes.Add("ondblclick", "location.href=’../ShippedGrid.ASPx?id=" + OrderItemID + "’"); } 双击表格打开新一页 if(e.Item.ItemType == ListItemType.I...
阅读全文
posted @
2007-07-21 11:10
阿龍
阅读(130)
推荐(0)
ASP.NET 程序中常用的三十三种代码(1)
摘要:ASP.NET 程序中常用的三十三种代码(1) 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.ASPx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("i...
阅读全文
posted @
2007-07-21 11:07
阿龍
阅读(100)
推荐(0)