必填字段 [英] Required Input Fields

查看:111
本文介绍了必填字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站(SAP门户框架)中看到由Java Webdynpro或ABAP webdynpro设计的界面,其中有些输入字段被标记为必填输入字段(在其标签后带有星号).

将某些输入字段设置为必填字段将指示用户必须输入这些字段(不为空),并且如果用户执行任何操作而未向这些输入字段提供值,则将通知用户该输入字段适当的信息,以便让用户知道他/她错过了数据输入的内容.

在VB.net中是否可以将某些输入字段标记为必填字段?

I seen in the website(SAP portal framework )where interface designed by Java Webdynpro or ABAP webdynpro that there are some input fields were marked (with read asterics after their labels) as Required Input Fields.

Making some input fields as required fields will indicate user that those fields must be input (not empty), and if user perform any action without providing values to these input field, the user will be informed apropriate infomation to this input field, in order to let user know what he/she missed data entry.

Is it possible in VB.net to mark some input fields as required fields?

推荐答案

如果将VB.Net与ASP一起使用,则可以查看 http://www.w3schools.com/aspnet/control_reqfieldvalidator.asp [ VB.NET文本框验证控件 [
If are using VB.Net with ASP then you can have a look at the http://www.w3schools.com/aspnet/control_reqfieldvalidator.asp[^] control. There are other validation controls available in ASP.Net as well.

If you are looking at windows forms, then you can build custom validations into your code. VB.NET TextBox Validation Control[^] is a decent example where this has been done. Other similar examples are available on the internet if you do a search.


这篇关于必填字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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