資源簡介
基于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);
????????}
????}
}
評論
共有 條評論