rendered paste bodyusing 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());
//}
}
}