using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Include_UpdatePanel : System.Web.UI.Page
{
//Global variables
protected static string IncludeFile = "";
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager sm = ScriptManager.GetCurrent(Page);
//Set defaults
if (sm.IsInAsyncPostBack == false &&
Page.IsCallback == false &&
Page.IsPostBack == false)
{
IncludeFile = "Overview.htm";
}
//Check defaults
if (IncludeFile == "") IncludeFile = "Overview.htm";
BuildControl();
}
protected void Button1_Click(object sender, EventArgs e)
{
IncludeFile = "Features.htm";
BuildControl();
}
protected void Button2_Click(object sender, EventArgs e)
{
IncludeFile = "Deployment.htm";
BuildControl();
}
private void BuildControl()
{
myInclude.IncludeFileURL = "~/Include/Files/" + IncludeFile;
myInclude.DataBind();
}
}
|