All pastes #216772 Raw Edit

Shin-Ra

public text v1 · immutable
#216772 ·published 2006-10-23 08:56 UTC
rendered paste body
using System;
using System.Web.UI;

public partial class _Default : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Control LoadingControl = new Control();

        if (Request.QueryString["do"] == "create")
        {
            //maindiv.Controls.Clear();
            LoadingControl = LoadControl("~/x.ascx");
            maindiv.Controls.Add(LoadingControl);
        }
        else if (Request.QueryString["do"] == "edit")
        {
            //maindiv.Controls.Clear();
            LoadingControl = LoadControl("~/y.ascx");
            maindiv.Controls.Add(LoadingControl);
        }
        //else
        //{
        //    Response.Write("q=" + Request.QueryString.ToString());
        //}
    }
}