摘要: (1)执行一个没有参数的存储过程的代码如下: SqlConnection conn=new SqlConnection(“connectionString”); SqlDataAdapter da = new SqlDataAdapter(); da.selectCommand = new SqlCommand(); da.selectCommand.Connection = conn; da.s... 阅读全文
posted @ 2007-06-22 17:48 陈十陵 阅读(232) 评论(0) 推荐(1) 编辑
摘要: 在asp.net中使用RegularExpressionValidator验证空件的时候,常用的正则表达式:只能输入数字:"^[0-9]*$"只能输入n位数字:"^\d{n}$"只能输入至少n位数字:"^\d{n,}$"只能输入m到n位的数字:"^\d[m,n]$"只能输入零或者非零开头的数字:"^(0|[1-9][0-9]*)$"只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})... 阅读全文
posted @ 2007-06-22 17:39 陈十陵 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 释放C盘空间的27招(1)评论(0)发表时间:2005年10月30日 21时48分 [%repeat_0 match="/data/option"%] [%=@title%] [%=@count%]票 [[%=@percent%]%] [%_repeat_0%] 主要讲讲Windows操作系统在C盘空间不足的情况下,我们可以通过那些具体手段来增加C盘空间。 1.打开“我的电脑”-“工具”-“文... 阅读全文
posted @ 2007-06-22 17:32 陈十陵 阅读(151) 评论(0) 推荐(0) 编辑
摘要: <div> <span style="font-size: 10pt"> 共有<asp:Label ID="lblRecordCount" runat="server" ForeColor="red"></asp:Label>条记录 当前为<asp:Label ID="lblCurrentPage" runat="server" ForeCol... 阅读全文
posted @ 2007-06-22 17:31 陈十陵 阅读(4269) 评论(4) 推荐(1) 编辑
摘要: C#:如果单元格数据没必要全部显示的话,就用<%#(DataBinder.Eval(Container.DataItem,"website").ToString().Length>20)? (DataBinder.Eval(Container.DataItem,"website").ToString().Substring(0,20)): (DataBinder.Eval(Contai... 阅读全文
posted @ 2007-06-22 17:25 陈十陵 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: <%@ control language="C#" autoeventwireup="true" inherits="Admin_PicUpload, App_Web_mboefw14" %>&nbsp;<asp:Image ID="EP_Image" runat="server" Height="160px" ImageUrl='<%# Bind("EP_Pic"... 阅读全文
posted @ 2007-06-22 16:42 陈十陵 阅读(523) 评论(0) 推荐(0) 编辑