上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: C#中同时存在String与stringMSDN中对string的说明:string is an alias for String in the .NET Framework。string是String的别名而已,string是c#中的类,String是Framework的类,C# string 映射为 Framework的 String。如果用string,编译器会把它编译成String,所以如果直接用String就可以让编译器少做一点点工作。如果使用C#,建议使用string,比较符合规范 。 string始终代表 System.String(1.x) 或 ::System.String( 阅读全文
posted @ 2011-09-29 11:16 易尔购 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在开发中经常会遇到这样的情况,在部署程序时为了保密起见并不将源代码随项目一同发布,而我们开发时的环境与部署环境可能不一致(比如数据库不一样),如果在代码中保存这些配置这些信息部署时需要到用户那里更改代码再重新编译,这种部署方式非常麻烦。在.net中提供了一种便捷的保存项目配置信息的办法,那就是利用配置文件,配置文件的文件后缀一般是.config,在asp.net中配置文件名一般默认是web.config。每个web.config文件都是基于XML的文本文件,并且可以保存到Web应用程序中的任何目录中。在发布Web应用程序时web.config文件并不编译进dll文件中。如果将来客户端发生了变化 阅读全文
posted @ 2011-09-29 10:07 易尔购 阅读(143) 评论(0) 推荐(0) 编辑
摘要: %windir%是系统分区下的系统目录,在命令行模式下输入%windir%然后回车就能查看当前机器的系统目录,在Windows2003及WindowsXP中%windir%是系统分区下的windows目录,在Windows2000中%windir%是系统分区下的WinNT目录 阅读全文
posted @ 2011-09-29 08:41 易尔购 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 1.保存html页面到word 复制代码 代码如下:<HTML> <HEAD> <title> </title> </HEAD> <body> <form id="form"> <table id = "PrintA" width="100%" border="1" cellspacing="0" cellpadding="0" > <TR style="text- 阅读全文
posted @ 2011-09-28 16:06 易尔购 阅读(3228) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml 阅读全文
posted @ 2011-09-28 16:00 易尔购 阅读(1935) 评论(0) 推荐(0) 编辑
摘要: 下载网址是http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en,Microsoft SQL Server Database Publishing Wizard 1.1工具和sql2005的向导工具很类型,不过没有sql2005向导工具的可选项多,不过还是可以的,至少生成的表的创建脚本在sql2000中执行没有问题。 阅读全文
posted @ 2011-09-28 14:24 易尔购 阅读(173) 评论(0) 推荐(0) 编辑
摘要: // Declare the variables var Excel, Book;// Create the Excel application object. Excel = new ActiveXObject("Excel.Application");// Make Excel visible. Excel.Visible = true;// Create a new work book. Book = Excel.Workbooks.Add()// Place some text in the first cell of the sheet. Book.ActiveS 阅读全文
posted @ 2011-09-28 14:22 易尔购 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: 有些时候我们在IIS上测试网站时,会出现HTTP 错误 403.9 - 禁止访问:连接的用户过多,这是因为XP系统作为IIS服务器时默认的连接数只有10,所以才导致HTTP 错误 403.9 - 禁止访问:连接的用户过多这个问题。我们只需要改变IIS连接数就好了。由于XP的IIS本身没有提供性能这个选项卡,微软自己正好提供这个小工具,估计他们也感觉到了这些问题了吧,微软出的一个管理IIS的小工具,名字叫做MtaEdt22.exe 下载地址:http://ishare.iask.sina.com.cn/f/6329971.html下载后执行MtaEdt22.exe,安装步骤如下: 安装完毕后.. 阅读全文
posted @ 2011-09-26 10:55 易尔购 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>本地图片预览代码(支持 IE6、IE7)</title><style type="text/css">#newPreview{ filter:progid:DXImageTransform.Mic 阅读全文
posted @ 2011-09-23 16:16 易尔购 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 代码一:PagedDataSource ps = new PagedDataSource(); ps.DataSource = dt.DefaultView; ps.AllowPaging = true; ps.PageSize = 10; int pagecount; if (Request.QueryString["page"] != null) pagecount = Convert.ToInt32(Request.QueryString["page"].ToString()); else pagecount = 1; ps.CurrentPage 阅读全文
posted @ 2011-09-23 11:33 易尔购 阅读(3549) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页