menu.ascx.cs
资源名称:yjal.rar [点击查看]
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:1k
源码类别:
Email客户端
开发平台:
Visual C++
- 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;
- public partial class WebUserControl : System.Web.UI.UserControl
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- Label1.Text = System.DateTime.Now.ToString("yyyy年MM月dd日") + " " + System.DateTime.Now.DayOfWeek.ToString();
- }
- protected void cmdSearch_Click(object sender, EventArgs e)
- {
- Session["tool"] = "都市新闻网络中心->站内查询("+DropDownList1.Text+")----输入关键字为"" + TextBox1.Text + """;
- Session["search"] = "select * from tbnews where style='" + DropDownList1.Text + "'and content like '%" + TextBox1.Text + "%' and issueDate='" + DateTime.Today.ToString() + "'";
- Response.Redirect("search.aspx");
- }
- }