<%@ WebHandler Language="C#" Class="UserCenter" %>

using System;
using System.Web;

public class UserCenter : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        string Action = context.Request.QueryString["Action"].ToString();
        string Html=string.Empty;
        switch (Action)
        {
            case "goods":
                Html = "<%@ Register Src=" + @"""~/Controls/MyOrderList.ascx"" TagName=""OrderList"" TagPrefix=""List"" %><List:OrderList ID=""OrderList"" runat=""server"" ></List:OrderList>";
                
                break;
            case "receiveaddr":
                Html ="<%@ Register Src=" + @"""~/Controls/Consignee.ascx"" TagName=""Consignee"" TagPrefix=""List"" %><List:Consignee ID=""Consignee"" runat=""server"" ></List:Consignee>";
                break;
            case "addtocart":
                Html ="<%@ Register Src=" + @"""~/Controls/ShoppingCart.ascx"" TagName=""ShoppingCart"" TagPrefix=""List"" %><List:ShoppingCart ID=""ShoppingCart"" runat=""server"" ></List:ShoppingCart>";
                break;
            case "profile":
                Html ="<%@ Register Src=" + @"""~/Controls/MsgBook.ascx"" TagName=""MsgBook"" TagPrefix=""List"" %><List:MsgBook ID=""MsgBook"" runat=""server"" ></List:MsgBook>";
                break;
            case "changepass":
                Html ="<%@ Register Src=" + @"""~/Controls/UpdatePassWord.ascx"" TagName=""UpdatePassWord"" TagPrefix=""List"" %><List:UpdatePassWord ID=""UpdatePassWord"" runat=""server"" ></List:UpdatePassWord>";
                break;
            case "customerinfo":
                Html ="<%@ Register Src=" + @"""~/Controls/Material.ascx"" TagName=""Material"" TagPrefix=""List"" %><List:Material ID=""Material"" runat=""server"" ></List:Material>";
                break;
            case "repass":
                Html ="<%@ Register Src=" + @"""~/Controls/Retrieve.ascx"" TagName=""Retrieve"" TagPrefix=""List"" %><List:Retrieve ID=""Retrieve"" runat=""server"" ></List:Retrieve>";
                break;
            case "mydeposit":
                Html ="<%@ Register Src=" + @"""~/Controls/MyDepost.ascx"" TagName=""MyDepost"" TagPrefix=""List"" %><List:MyDepost ID=""MyDepost"" runat=""server"" ></List:MyDepost>";
                break;
            case "statinfo":
                Html ="<%@ Register Src=" + @"""~/Controls/Statistik.ascx"" TagName=""Statistik"" TagPrefix=""List"" %><List:Statistik ID=""Statistik"" runat=""server"" ></List:Statistik>";
                break;
            case "deposit":
                Html ="<%@ Register Src=" + @"""~/Controls/IntegralInquires.ascx"" TagName=""IntegralInquires"" TagPrefix=""List"" %><List:IntegralInquires ID=""IntegralInquires"" runat=""server"" ></List:IntegralInquires>";
                break;
            case "Bill":
                Html ="<%@ Register Src=" + @"""~/Controls/Remittance.ascx"" TagName=""Remittance"" TagPrefix=""List"" %><List:Remittance ID=""Remittance"" runat=""server"" ></List:Remittance>";
                break;
            case "ValidationUser":
                Html ="<%@ Register Src=" + @"""~/Controls/ValidationUser.ascx"" TagName=""ValidationUser"" TagPrefix=""List"" %><List:ValidationUser ID=""ValidationUser"" runat=""server"" ></List:ValidationUser>";
                break;
        }
        context.Response.Write(Html);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}