日期:2014-05-17 浏览次数:20461 次
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.SessionState;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using Galsun.Common;
using Galsun.Gzln.Content;
using Galsun.Gzln.Mode;
namespace Galsun.Gzln.Web.UI
{
public class Upload : IHttpHandler, IRequiresSessionState
{
gl_MagazineContent _magazine = new gl_MagazineContent();
public Upload()
{
}
#region IHttpHandler Members
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
// Example of using a passed in value in the query string to set a categoryId
// Now you can do anything you need to witht the file.
//int categoryId = 0;
//if (!string.IsNullOrEmpty(context.Request.QueryString["CategoryID"]))
//{
// int.TryParse(context.Request.QueryString["CategoryID"],out categoryId);
//}
//if (categoryId > 0)
//{
//}
&nb