日期:2014-05-17 浏览次数:20500 次
public partial class Mailbox : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
Label1.Text =Session["location"].ToString();
}
}
protected void tree_SelectedNodeChanged(object sender, EventArgs e)
{
Session["location"] = tree.SelectedNode.Text;
Response.Redirect("Mailbox.aspx?");
//Session["location"] = tree.SelectedNode.Text;
//string node = tree.SelectedNode.Text;
//string url = "Mailbox.aspx?Location=+node'";
//Response.Redirect(url);
}
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["location"] != null)
{
Label1.Text = Request.QueryString["location"].ToString();
}
}
protected void tree_SelectedNodeChanged(object sender, EventArgs e)
{
string location = tree.SelectedNode.Text;
Response.Redirect("Mailbox.aspx?location="+location);
}