摘要:
配置文件 操作方法代码using System; using System.Web.Configuration;public class SiteHelper { static public object GetCache(string CacheId) { object objCache = System.Web.HttpRuntime.Cache.Get(CacheId); // 判断 Cache 是否启用 if (WebConfigurationManager.AppSettings["EnableCache"] ==null ||!Convert.ToBoolean 阅读全文
摘要:
var str = "Hello World";// 删除第一个字符 H,结果为 ello World alert(str.slice(1));// 删除最后一个字符 d,结果为 Hello Worl alert(str.substring(0, str.length - 1));追问我就是要判断第一个好最后一个字符是否为逗号,是逗号的话就删掉回答那你可以结合上面两次回答来做var str = ",Hello World,";// 如果第一个字符为逗号 if(str.substr(0, 1) == ",") { // 删除第一个字符 阅读全文
摘要:
【程序代码】<asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <asp:Label ID="Label1" runat="server" Text="AAAAAAA"></asp:Label> </HeaderTemplate> <ItemTemplate> <asp:Label ID="Label2" runat=" 阅读全文
摘要:
允许以下命令: MSPetShop4 为数据库,Item为表C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regsql -S localhost -E -d MSPetShop4 -ed C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regsql -S localhost -E -d MSPetShop4 -t Item -et 阅读全文
摘要:
<% ' 执行每天只需处理一次的事件 Call BrandNewDay() ' ============================================ ' 执行每天只需处理一次的事件 ' ============================================ Sub BrandNewDay() Dim sDate sDate = Date() If Application( "date_today ") = sDate Then Exit Sub ' 具体操作 Application.Lock 阅读全文
摘要:
/Files/hellen-li/MSN_Messenger_for_windows_server_2003.rarwindows 2003 server 操作系统能安装此款msn,绿色的,免安装 阅读全文
摘要:
Set rs = Server.CreateObject("Adodb.RecordSet") rs.open sql,conn,1,1 DIM Appeared Call DisRndRecord(10,rs.recordCount)'调用函数该位置显示记录 '################SUBS################ '#DisRndRecord(DisNum,rsBound) '#参数DisNum:显示数量 '#参数rsBound:随机数产生范围 Sub DisRndRecord(DisNum,rsBound) D 阅读全文
摘要:
1. 先建立do.vbs文件 Dim IE Set IE = CreateObject( "InternetExplorer.Application") '运行你的asp文件 ie.navigate( http://localhost/test.asp) ie.visible=1 '如果想使运行的网页不可见,就设为0 'Clean up... Set IE = Nothing2. 在任务计划程序 里添加 do.vbs 阅读全文
摘要:
当前日期时间的获取:DateTime datetime1=DateTime.Now;日期时间的运算:string str1=(datetime1.AddYears(1)).ToString(); //加年份string str1=(datetime1.AddMonths(1)).ToString();//加月份string str1=(datetime1.AddDays(1)).ToString();//加日期string str1=(datetime1.AddHours(1)).ToString();//加小时string str1=(datetime1.AddMinutes(1)).ToS 阅读全文
摘要:
解决办法: ALTER DATABASE DatabaseName SET NEW_BROKER WITH ROLLBACK IMMEDIATE;ALTER DATABASE Databasename SET ENABLE_BROKER; 阅读全文