/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.ddl_Text.TextChanged += new System.EventHandler(this.ddl_Text_TextChanged); this.Calendar1.VisibleMonthChanged += new System.Web.UI.WebControls.MonthChangedEventHandler(this.Calendar1_VisibleMonthChanged); this.Calendar1.SelectionChanged += new System.EventHandler(this.Calendar1_SelectionChanged); this.ImageButton1.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click); this.Load += new System.EventHandler(this.Page_Load);
} #endregion
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e) { if(ddl_Text.Text!="") { webJSUtil.Alert(this,ddl_Text.Text); this.ddl_Text.Text="---请选择---"; // webJSUtil.ExecuteClientScriptOnWindowLoad(this,"dropdown(value11)"); } else { webJSUtil.Alert(this,"请选择或输入!"); } }
private void Calendar1_SelectionChanged(object sender, System.EventArgs e) { ddl_Text.Text=Calendar1.SelectedDate.ToShortDateString(); }
private void Calendar1_VisibleMonthChanged(object sender, System.Web.UI.WebControls.MonthChangedEventArgs e) { webJSUtil.ExecuteClientScriptOnWindowLoad(this,"dropdown(value11)"); }
private void ddl_Text_TextChanged(object sender, System.EventArgs e) {// webJSUtil.Alert(this,this.ddl_Text.Text); } }}
上一页 [1] [2]
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18