使用sql server创建一个注册和登录表单到asp.net mvc 3? [英] create a registration and login form into asp.net mvc 3 with sql server ?

查看:71
本文介绍了使用sql server创建一个注册和登录表单到asp.net mvc 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个asp.net mvc3 webapplication,我想设置一个包含用户名和密码texbox的登录页面(视图),当用户提交值时,如何将这些值输入我的模型类方法(认证方法)如果用户没有进入db表,那么我想显示注册表单,当用户填写表单并提交时,我希望将该表单值转换为我的模型类方法以将值提交到数据库中。有什么可能的方法来创建登录和注册机制到asp.net mvc3 ..

请帮助我

i want to create an asp.net mvc3 webapplication where i want to set an login page (view) which contain username and password texbox and when user submit value then how to get those value into my model class method (authentication method) and if user not foud into db table then i want to show registration form and when user fill form and submit then i want to get that form values into my model class method to submit value into database . what are the possible way to create login and registration machinism into asp.net mvc3 ..
help me please

推荐答案

Visual Studio创建这样的模板自动。点击文件> ASP.NET Web应用程序

https://gyazo.com/bda65cdc629cd8ae7d25ff36740b6350 [ ^ ]



之后检查MVC复选框

https://gyazo.com/5970549fe1613589813dad0324fbf79a [ ^ ]



Visual Studio将创建一个具有您所需功能的所有功能 -

https://gyazo.com/c2faec4e82408dd57f9fbd729fe11dec [ ^ ]
Visual Studio creates such template automatically. Click File > ASP.NET Web Application
https://gyazo.com/bda65cdc629cd8ae7d25ff36740b6350[^]

After that check MVC checkbox
https://gyazo.com/5970549fe1613589813dad0324fbf79a[^]

And Visual Studio will create a with all functionality you required -
https://gyazo.com/c2faec4e82408dd57f9fbd729fe11dec[^]


Hi nitin请看这个有用的链接。我希望它会对你有所帮助



在ASP.NET MVC中创建注册表单 [ ^ ]



c# - 一个视图上的登录和注册表单MVC3 Razor - Stack Overflow [ ^ ]



ASP.Net MVC中的登录和注册表 [ ^ ]



登录& amp; MVC中的注册表 - Materialise Design - .NET [ ^ ]
Hi nitin please see this useful link. I hope it will help you

Create a Registration Form in ASP.NET MVC[^]

c# - Both login and registration form on one view MVC3 Razor - Stack Overflow[^]

Login and Registration Form in ASP.Net MVC[^]

Login & Registration Form in MVC - Materialize Design - .NET[^]


这篇关于使用sql server创建一个注册和登录表单到asp.net mvc 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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