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;
using System.Text;
public partial class Input : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DDL_Time.Items.Add("20080415");
DDL_Time.Items.Add("20080416");
DDL_Time.SelectedIndex = 0;
}
}
protected void BN_Query_Click(object sender, EventArgs e)
{
Location("Output.aspx?Time=" + DDL_Time.SelectedItem.ToString());
}
/**//// <summary>
/// 页面重载
/// </summary>
public void Location(string sPath)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script language=\"javascript\"> \n");
sb.Append("parent.frames['Output'].location.href='" + sPath + "';");
sb.Append("</script>");
System.Web.HttpContext.Current.Response.Write(sb.ToString());
}
}

查看所有0条评论>>