摘要:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList 阅读全文
摘要:
思路:母版頁隱藏控件 從内容頁接收值 JS根據接受的值控制菜單項的現實母版頁:隱藏控件: <asp:Label ID="Lbl_X" runat="server" Text="text" style="display:none"></asp:Label> <asp:Label ID="Lbl_Xn" runat="server" Text="text" style="display:none">< 阅读全文
摘要:
去空格 replace(ltrim(rtrim(phone)),' ','')字符串轉化成整數 select MAX(convert(bigint,(replace(ltrim(rtrim([EmployeeNo])),' ',''))))--sql Function 函數:create function fn_IsWorkDay(@date datetime)returns bitasBEGINdeclare @IsWorkDay bitdeclare @WeekDayNum intdeclare @Type varchar(1 阅读全文
摘要:
AjaxControlToolkit是一组控件的集合,可以实现自动补充文本框,点击文本框弹出日历,加水印等Ajax效果,包含40多个控件,具体实现效果如:http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Default.aspx像百度搜索一样,根据用户输入自动联想相关词汇,借助AjaxControlToolkit中的AutoCompleteExtender控件很简单的实现,实现效果如下:详细步骤:一:Vs中安装AjaxControlToolkitAjaxControlToolkit安装到VS中(需要注意版本问题):安装方法: 阅读全文
摘要:
1,ashx頁面<%@ WebHandler Language="C#" Class="GetImage" %>using System;using System.Web;using System.Data;using System.IO;public class GetImage : IHttpHandler{ public void ProcessRequest(HttpContext context) { SQLHelper sqlH = new SQLHelper(); string strID = context.Request[& 阅读全文
摘要:
insert into opendatasource( 'SQLOLEDB', 'Data Source=172.17.254.5;User ID=登陆名;Password=密码').PF_DB.dbo.seT_orderbuy select *from dbo.seT_orderbuy where orderstartdate>='2008/11/26' and orderenddate<='2008/12/02' and suppliercode='3429' 阅读全文
摘要:
protected string CreateRandomCode(int codeCount) { string allChar = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,P,Q,R,S,T,U,W,X,Y,Z"; string[] allCharArray = allChar.Split(','); string randomCode = ""; int temp = -1; Random random = new Random(); for (int i = 0; i < c... 阅读全文
摘要:
<script type="text/javascript" language="javascript"> function CheckDigitial() { var k = window.event.keyCode; if ((k < 48 || k > 57 ) && k != 120 ) { //alert("你輸入的不是數字!"); window.event.keyCo... 阅读全文
摘要:
用ClientID来获取对象,把代码修改为: var txt= "<%=txtSupplyer.ClientID%>"; var v = document.getElementById(txt).value; 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> 验证数字最简单正则表达式大全 </title> </head> <body> <h3&g 阅读全文