是否可以在下拉菜单中提高文本框的验证器已更改
大家好,通常我们可以在单击按钮或控件留空时处理验证器。我的要求如下
我有一个文本框和一个下拉列表,其中下拉列表与数据库值绑定如下
mlocal_strStoredProcName = USADAO.StoredProcNames.PayFrequency_uspPayFrequencySelect;
oEmployee.Select(out mlocal_ds, mlocal_strStoredProcName);
ddlPaymentType.DataSource = mlocal_ds;
ddlPaymentType.DataTextField = TablesAndColumns.tblPayFrequency_PayFrequencyDesc;
ddlPaymentType.DataValueField = TablesAndColumns.tblPayFrequency_PayFrequencyTypeID;
ddlPaymentType.DataBind();
ddlPaymentType.Items.Insert(0, "Select");
mlocal_ds.Clear();
我需要的是,如果文本框在 ddlPaymentType_SelectedIndexChanged 上留空,我想触发验证器是如果可以的话可以做吗任何人都可以给我一个想法
Hi all generally we can handle validators on Button click or when the control is left empty. I am having my requirement as follows
I am having a text box and a drop down where the drop down list is binded with database values as follows
mlocal_strStoredProcName = USADAO.StoredProcNames.PayFrequency_uspPayFrequencySelect;
oEmployee.Select(out mlocal_ds, mlocal_strStoredProcName);
ddlPaymentType.DataSource = mlocal_ds;
ddlPaymentType.DataTextField = TablesAndColumns.tblPayFrequency_PayFrequencyDesc;
ddlPaymentType.DataValueField = TablesAndColumns.tblPayFrequency_PayFrequencyTypeID;
ddlPaymentType.DataBind();
ddlPaymentType.Items.Insert(0, "Select");
mlocal_ds.Clear();
What i need is if the text box is left empty on ddlPaymentType_SelectedIndexChanged i would like to fire the validator is it possible to do if so can any one give me an idea
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
得到刚刚使用的答案
Got the answer just used