//这是用的TreeView控件,当点击“发送邮件”,便在"MainFrame"显示其页面,请问,这代码要如何写?没用AJAX控件; protected void tv_SelectedNodeChanged(object sender, EventArgs e)
{
if (tv.SelectedValue.ToString() == "发送邮件")
{ //????? }
}//我看有个用的是AJAX控件,是这样写的,
if (tv.SelectedValue.ToString() == "在线Ping检测")
{
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.GetType(), "error", "window.open('TRAP/Ping.aspx','mainFrame')", true);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货