天下無雙
阿龍 --质量是流程决定的。
摘要: 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 阿龍 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 192.168.0.103 NanKe sa 阅读全文
posted @ 2007-07-21 18:47 阿龍 阅读(92) 评论(0) 推荐(0) 编辑
摘要: using System.Data;using System.Data.SqlClient;using System.Xml;using System.Web; namespace SMB.Data{ public class Config:System.Web.UI.Page { public enum Provider { OLEDB, MSSQL, } private s... 阅读全文
posted @ 2007-07-21 17:25 阿龍 阅读(168) 评论(0) 推荐(0) 编辑
摘要: using System.Data.SqlClient; using System.Data.OleDb; using System.Data; using System.Collections.Generic; using System; namespace SMB.Data { /// /// Utility 的摘要说明。 /// public sealed class Utili... 阅读全文
posted @ 2007-07-21 16:47 阿龍 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(114) 评论(0) 推荐(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++) { dt.R... 阅读全文
posted @ 2007-07-21 11:30 阿龍 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 先定义变量 : 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 阿龍 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(128) 评论(0) 推荐(0) 编辑
摘要: </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 阿龍 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 在你的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 阿龍 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 【<%#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 阿龍 阅读(107) 评论(0) 推荐(0) 编辑
摘要: <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 阿龍 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(78) 评论(0) 推荐(0) 编辑
摘要: /// </retvalue> /// </summary> public static String FormatException(Exception ex, String catchInfo) { StringBuilder strBuilder = new StringBuilder(); if (catchInfo != String.Empty) ... 阅读全文
posted @ 2007-07-21 11:18 阿龍 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(141) 评论(0) 推荐(0) 编辑
摘要: { 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 阿龍 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 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 阿龍 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 第一步、在间加入第二步、改为第三步:在loginout.asp中加入如下代码(注意两个文件要在同一目录下) 阅读全文
posted @ 2007-07-21 10:55 阿龍 阅读(1581) 评论(0) 推荐(0) 编辑