using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FineUI.Examples.form { public partial class twintriggerbox : PageBase { protected void Page_Load(object sender, EventArgs e) { } // 点击 TwinTriggerBox 的搜索按钮 protected void ttbxMyBox2_Trigger2Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(ttbxMyBox2.Text)) { // 执行搜索动作 Alert.ShowInTop(String.Format("在关键词“{0}”中搜索", ttbxMyBox2.Text)); ttbxMyBox2.ShowTrigger1 = true; } else { Alert.ShowInTop("请输入你要搜索的关键词!"); } } // 点击 TwinTriggerBox 的取消按钮 protected void ttbxMyBox2_Trigger1Click(object sender, EventArgs e) { // 执行清空动作 Alert.ShowInTop("取消搜索!"); ttbxMyBox2.Text = ""; ttbxMyBox2.ShowTrigger1 = false; } } }