- 博客(9)
- 资源 (2)
- 收藏
- 关注
转载 ASP.NET Application,Session,Cookie和ViewState等对象用法和区别
在ASP.NET中,有很多种保存信息的内置对象,如:Application,Session,Cookie,ViewState和Cache等。下面分别介绍它们的用法和区别。方法 信息量大小 作用域和保存时间
2010-05-10 16:33:00 417
原创 POST上传
private Boolean UploadFile() { Boolean flag = false; try { foreach (string f in Request.Files.AllKeys) { HttpPostedFile pos
2010-03-23 15:55:00 1065
原创 WebService上传文件
webservice: [WebService(Namespace = "http://127.0.0.1/")] //调用此web service的地址[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]public class Service : System.Web.Services.WebServi
2010-03-23 15:42:00 1039 2
原创 asp.net 输出XML文件
private void WriteXML() { StringBuilder sb = new StringBuilder(); sb.Append(" "); sb.Append(" <!-- "); sb.Append(""); sb.Append("zhangsan");
2010-03-07 15:56:00 705
原创 document.getElementsByName() 兼容
var getElementsByName = function(tag, name){var returns = document.getElementsByName(name);if(returns.length > 0) return returns;returns = new Array();
2010-01-18 10:53:00 919
原创 短信分割
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebCont
2010-01-05 15:32:00 545
原创 获取操作系统版本号
function TForm1.GetOSVersion:String;var OSVersion:TOSVersionInfo;begin OSVersion.dwOSVersionInfoSize:=SizeOf(OSVersion); GetVersionEx(OSVersion); case OSVersion.dwPlatformId of VER_P
2009-12-25 13:11:00 454
原创 母版页使用
1.母版页访问内容页面((TextBox)this.ContentPlaceHolder1.FindControl("TextBox1")).Text 2.内容页面访问母版页((TextBox)((MasterPage)Master).FindControl("TextBox1")).Text
2009-12-01 09:53:00 265
原创 文件查找FindFirst FindNext
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click
2009-07-26 22:06:00 725
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人