摘要:
protected void Upload() { //判断是否选择文件 if (FileUpload1.HasFile) { string fileContentType = FileUpload1.PostedFile.ContentType;//获取文件类型 //判断类型是否符合条件 if (fileContentType == "image/bmp" || fileContentType == "image/gif" || fileContentType == "image/pjpeg"||fileContentType==& 阅读全文
posted @ 2012-10-22 20:25
蓬莱仙羽
阅读(205)
评论(0)
推荐(0)
摘要:
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class CalendarThree : System.Web. 阅读全文
posted @ 2012-10-22 16:30
蓬莱仙羽
阅读(279)
评论(0)
推荐(0)
摘要:
如何运用内置对象session和application对象实现统计在线人数首先创建一个全局应用程序类Global.asaxprotected void Application_Start(object sender, EventArgs e) { if (Application["CountOnline"] == null) { Application["CountOnline"] = 0; } } //设置session对象,生存时间为1分钟 protected void Session_Start(object sender, EventArgs e 阅读全文
posted @ 2012-10-22 16:01
蓬莱仙羽
阅读(174)
评论(1)
推荐(0)
摘要:
(一).Web.Config是以XML文件规范存储,配置文件分为以下格式 1.配置节处理程序声明 特点: 位于配置文件的顶部,包含在<configSections>标志中。 2.特定应用程序配置 特点: 位于<appSetting>中。 可以定义应用程序的全局常量设置等信息. 3.配置节设置 特点: 位于<system.Web>节中,控制Asp.net运行时的行为. 4.配置节组 特点: 用<sectionGroup>标记,可以自定义分组,可以放到<configSections>内部或其它<sectionGroup>标记的 阅读全文
posted @ 2012-10-22 15:09
蓬莱仙羽
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号