验证每个组合框 [英] validate every combobox

查看:74
本文介绍了验证每个组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HELLO SIR,
我正在Asp.net中进行项目,并使用MSSQL.在页面中,我创建了一个名为"device_name"和一个组合框的标签,其中两个设备"ECG"和"NIBP"正在从数据库中删除.按钮保存".

接下来在下面的面板中,创建了两个标签.但是在DB中,我给了四个标签.

现在在网页中,如果我将设备名称选择为"ECG".则面板中的两个标签将从数据库中上传,分别名为"doctorname"和"Patient_id".如果我将设备名称选择为"NIBP".则面板中的两个标签将会上载"High_BP","Low_BP",这些是来自DB的值.

如果我去"ECG" --->

现在我要验证",对于第一个组合框,如果我在"refering docotor name"中输入数字,并在Patient_id中输入数字,然后点击"save"按钮.那么它应该给出一个弹出消息,提示输入valide数据以供参考" docotor名称".因此用户以名称输入数据并保存到DB.

如果我去"NIBP" --->


现在,我要对第一个组合框"进行验证",如果我在"High_BP"中输入名称,并在"Low_Bp"中输入数字,然后点击保存"按钮.那么它应该给出一个弹出消息,提示将验证数据输入到High_BP" .因此用户输入数字数据并保存到DB.

我想对两个combobox都进行验证.如何验证.如果在代码中有帮助..

从最后一天苦苦挣扎,请帮忙.

感谢您的问候
Pradeep

HELLO SIR,
Am doing my project in Asp.net,and am using MSSQL.Here in the page i created a label called "device_name" and one combobox,in that two devices "ECG",and "NIBP" are dropping down from database.And one button "Save".

Next in below panel,created two label .But in DB i had given four label.

Now in webpage,if i select device name as "ECG".Then two labels in panel gets upload called "doctorname" and "patient_id" from DB.If i select device name as "NIBP".Then two labels in panel gets upload called "High_BP","Low_BP",these are values from DB.

If i go for"ECG"--->

Now i wan to "validate",for 1st combobox if i enter a number in "referring docotor name",and number in patient_id and tap a "save" button.Then it should give a popup message saying "enter a valide data to referring docotor name".So user enters a data in name and gets saved to DB.

If i go for"NIBP"--->


Now i wan to "validate",for 1st combobox if i enter a name in "High_BP",and number in "Low_Bp" and tap a "save" button.Then it should give a popup message saying "enter a valide data to High_BP".So user enters a data in number and gets saved to DB.

I want to validate for both combobox.how to validate.If in code it is helpful..

Struggling from last one day,,plz do help..

Thanks n regards
Pradeep

推荐答案

也许这些可以帮助您
http://www.c-sharpcorner.com/Forums/Thread/58271/ [ ^ ]
http://www.dotnetspider.com/forum/103376-validate-combobox-having- dataset.aspx [ ^ ]
在C#.net中验证动态组合框 [
Perhaps these will help you
http://www.c-sharpcorner.com/Forums/Thread/58271/[^]
http://www.dotnetspider.com/forum/103376-validate-combobox-having-dataset.aspx[^]
Validate Dynamic Combobox in C#.net[^]


这篇关于验证每个组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆