摘要: <script type="text/javascript">var hkey_root,hkey_path,hkey_keyhkey_root="HKEY_CURRENT_USER"hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"//设置网页打印的页眉页脚为空function pagesetup_nul... 阅读全文
posted @ 2009-06-10 13:16 戒子 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 在web.config——<system.web>节点下添加<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312"/>或者别的编码格式 阅读全文
posted @ 2009-06-10 13:15 戒子 阅读(296) 评论(0) 推荐(0) 编辑
摘要: <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61... 阅读全文
posted @ 2009-06-10 09:50 戒子 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 在GridView中加入分页模板:<PagerTemplate> <table align="right" bgcolor="#e9e9e9" width="100%"> <tr> <td style="text-align: right; color: #ff6400;"> 第<b><asp:Label ID="lblPageIn... 阅读全文
posted @ 2009-06-10 09:49 戒子 阅读(547) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Eyes.aspx.cs" Inherits="Eyes" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-... 阅读全文
posted @ 2009-06-10 09:47 戒子 阅读(746) 评论(1) 推荐(0) 编辑
摘要: void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 System.Timers.Timer time = new System.Timers.Timer(5000);//5秒执行一次 time.AutoReset = true; time.Enabled = true; time.Elapsed += new... 阅读全文
posted @ 2009-06-10 09:43 戒子 阅读(471) 评论(2) 推荐(0) 编辑