如何生成错误报告? [英] how to generate error report?

查看:515
本文介绍了如何生成错误报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一种形式,即当用户在文本框中输入数据时,如果将文本框分配给数值,那么如果用户输入文本值怎么会产生错误?

对于asp.net,同样的问题,但是当用户输入错误的值时,它会显示错误消息.在文本框中输入错误的值.

其次,您可以在输入错误字符时使handle错误.这样就不允许在那里写任何字符.

对于ASP.NET,您可以使用内置的验证器,也可以使用Java脚本手动处理它,并在文本框旁边添加错误标签.


i create one form, in that when user enter the data in textbox,if textbox is assign to numeric values then if user enter the text value how generate error?

the same question is for asp.net but it show the error message atwhen user enter wrong values.

解决方案

I think you can display a label with error description in it on entering wrong values in text box.

Secondly, you can just make handle false on entering wrong character in it. so that it will not allow there to write any character in it.

For ASP.NET you may use in built validators or you can use java script for handle it manually with error labels next to your textbox.


这篇关于如何生成错误报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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