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; using System.Data.SqlClient;
} protected void Tx_sub_Click1(object sender, EventArgs e) { string time = DateTime.Now.ToString(); Response.Cookies["time"].Value = time; Response.Cookies["time"].Expires = DateTime.Now.AddYears(1); int x,y,z; x = 0; y = 0; z = 0; int i=0; readnewID(); i =int.Parse(Request.Cookies["countID"].Value.ToString())+1; if (Type2.SelectedIndex == 0) { y = 0; } if (Type2.SelectedIndex == 1) { y = 1; } if (Type2.SelectedIndex == 2) { y = 2; } if (Type2.SelectedIndex == 3) { y = 3; } if (Limite.SelectedIndex == 0) { z = 0; } if (Limite.SelectedIndex == 1) { z= 1; } if (Tx_Head.Text.Trim() == "") { Response.Write("<script>alert('你还没有写日志标题呢!')</script>"); //Response.Write("<script>alert('你还没有写日志标题呢!');window.location.href ='log.aspx'</script>");