我应该使用Web表单模板吗? [英] Should I use the Web Forms Template?

查看:60
本文介绍了我应该使用Web表单模板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我正在尝试我的第一个网站,它会响应。我想在Visual Studio 2012中使用Web窗体模板。我有自己的数据库来管理/存储数据。我还想使用Web窗体模板的帐户功能,这样我就不必重新创建轮子并创建自己的登录表单,重置密码表单等...我也想使用表单身份验证。我不确定如何使用我的数据库中内置到模板中的内置用户帐户功能???我需要帮助决定是否创建自己的帐户控件或使用成员资格提供程序来执行此操作。我听说我可以将表格从模板导出到我的数据库。我以前尝试过这个并没有顺利。我只需要一点方向。谢谢。

Hi everyone! I am attempting my first web site, it will be responsive. I want to use the Web Forms Template in Visual Studio 2012. I have my own database for managing/storing data. I would also like to use the account features of the Web Forms Template so that I do not have to recreate the wheel and create my own log in forms, reset password forms, etc... I want to use forms authentication as well. I am uncertain how to use the built in Users Account functionality that is built into the template with my database??? I need help deciding on whether to create my own account controls or use the Membership provider to do it. I heard that I can export the tables from the template to my database. I tried this before and it didn't go well. I just need a little direction. Thanks.

推荐答案

不幸的是,对于最好的做事方式,很少有正确的答案。我个人不使用登录控件,但我知道有人这样做。



MSDN上有关于如何使用FormsAuthentication的文章。



听起来你有个主意您想要去哪个方向,所以我建议您查找您需要的各个部分的样本。
Unfortunately there is rarely a correct answer for the best way to do things. I personally do not use the login controls but I know people who do.

There are articles on MSDN for how to use FormsAuthentication.

It sounds like you have an idea of what direction you want to go so I would recommend looking for samples of each various part that you are needing.


这篇关于我应该使用Web表单模板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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