资源简介
基于ASP.NET平台的BTC视频教程找回密码功能全面介绍,还有源代码.
代码片段和文件信息
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace Mvc_B2C
{
public partial class _Default : Page
{
public void Page_Load(object sender System.EventArgs e)
{
// Change the current path so that the Routing handler can correctly interpret
// the request then restore the original path so that the OutputCache module
// can correctly process the response (if caching is enabled).
string originalPath = Request.Path;
HttpContext.Current.RewritePath(Request.ApplicationPath false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
HttpContext.Current.RewritePath(originalPath false);
}
}
}
评论
共有 条评论