如何通过使用javasrcipt验证表单,然后通过asp.net将其连接到数据库 [英] how to validate a form by using javasrcipt and then connect it to database by asp.net

查看:63
本文介绍了如何通过使用javasrcipt验证表单,然后通过asp.net将其连接到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,大家都知道大多数网页设计/编码都是用html/javascript完成的,因此减轻了服务器的负担,并且仅在使用asp.net的情况下才有必要/必要.
所以我需要一个帮助friends.I想要一个简短的演示,例如我有一个登录表格,其中用户名和密码是必不可少的.现在我想使用javascript来验证这个领域.经过正确的验证后,我想使用asp.net/c#编码技术在数据库中输入数据.该操作结束后,数据库应根据操作返回用户名或错误.我希望此结果应该在新窗口或新标签页中打开.请帮我 .嘲笑我应该执行哪些步骤

谢谢你
anoop

hi as everybody knows most of webdesign/coding is done in html/javascript so reduce the burden on server and where it is necessary/essential there only asp.net is used.
so i required a help friends.i want a short demo for eg i have a loging form where username and password are essentials . now i want to validate this feild`s using javascript . after proper validation is over i want to enter data in database using asp.net/c# codeing techniques . after that operation is over the database should return name of user or error depending upon operations. i want this result should be open in new window or in new tab o. please help me . sujjest me what steps should i carry out

thank u
anoop

推荐答案

你好朋友,请从这里开始.....

http://msdn.microsoft.com/en-us/library/aa479013.aspx [ ^ ]

http://www. aspdotnetfaq.com/Faq/How-to-control-ASP-NET-Validator-Controls-Client-Side-validation-from-JavaScript.aspx [ http://brijbhushan.net/2011/03 /26/validating-partial-page-with-asp-net-validators-using-javascript/ [ http://forums.asp.net/t/1028478.aspx/1 [ ^ ]
Hello Friend please starts from here.....

http://msdn.microsoft.com/en-us/library/aa479013.aspx[^]

http://www.aspdotnetfaq.com/Faq/How-to-control-ASP-NET-Validator-Controls-Client-Side-validation-from-JavaScript.aspx[^]

http://brijbhushan.net/2011/03/26/validating-partial-page-with-asp-net-validators-using-javascript/[^]

http://forums.asp.net/t/1028478.aspx/1[^]


anoop

由于其客户端功能,JavaScript仍在实时应用中摇摆不定.
在实时创建任何表单时,您需要使用javascript或任何脚本语言来进行客户端验证.

例如:检查文本框数据是否为有效格式.文本框不应为空.如果单击asp.net和c#可以更好地学习Java脚本,则在大多数情况下,当单击复选框"或单选按钮"启用或禁用按钮时,将使用这种功能.

尝试此链接以了解基本的JavaScript http://www.w3schools.com/js/default.asp [ ^ ]
Hi, anoop

Still javascript is Rocking in the real time applications because of it''s client side functionality.
In the real time when creating any form u need to do the client side verification''s by using javascript or any script languages.

ex: To check whether the text box data is valid format or not. text box should not empty. When Click on Check box or Radio button enable or disable buttons this kind functionality is used in most scenario''s if ur starter to the asp.net and c# u better to learn java script also.

try this link for learn basic javascript http://www.w3schools.com/js/default.asp[^]


anoop

由于其客户端功能,JavaScript仍在实时应用中摇摆不定.
在实时创建任何表单时,您需要使用javascript或任何脚本语言来进行客户端验证.

例如:检查文本框数据是否为有效格式.文本框不应为空.如果单击asp.net和c#可以更好地学习Java脚本,则在大多数情况下,当单击复选框"或单选按钮"启用或禁用按钮时,将使用这种功能.

尝试此链接以了解基本的JavaScript http://www.w3schools.com/js/default.asp [ ^ ]
Hi, anoop

Still javascript is Rocking in the real time applications because of it''s client side functionality.
In the real time when creating any form u need to do the client side verification''s by using javascript or any script languages.

ex: To check whether the text box data is valid format or not. text box should not empty. When Click on Check box or Radio button enable or disable buttons this kind functionality is used in most scenario''s if ur starter to the asp.net and c# u better to learn java script also.

try this link for learn basic javascript http://www.w3schools.com/js/default.asp[^]


这篇关于如何通过使用javasrcipt验证表单,然后通过asp.net将其连接到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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