/// <summary>
/// 搜索内容
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSearch_Click(object sender, EventArgs e)
{
    string key = txtSearch.Text.Trim();

    string action = this.radTitle.Checked ? "byTitle" : "byContent";

    Response.Redirect("~/NewsSearch.aspx?key=" + Server.UrlEncode(key) + "&action=" + action + "");
}

 

相关文章:

  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-09-22
  • 2021-05-23
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-06-30
  • 2022-02-10
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案