protected void bntLogin_Click1(object sender, ImageClickEventArgs e)
{
{
m_添加Cookies();
}
void m_添加Cookies()
{
if (Request.Browser.Cookies == true)
{
HttpCookie newCookie = new HttpCookie("name", UserNameTextBox.Text);
newCookie.Expires = DateTime.Now.AddYears(1);
Response.Cookies.Add(newCookie);
}
}