如何使用C#制作网站登录界面的代码? [英] How to make the code for a website's log in interface with C#?

查看:130
本文介绍了如何使用C#制作网站登录界面的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#制作网站登录代码?
我知道您可以在C#中执行拖放方法以在您的网站中具有登录功能,但是我想知道使用代码的手动方法.我希望您能为我提供帮助.

How to make the code for a website''s log in interface with C#?
I Know that you can do the drag-and-drop method in C# to have a log in function in your Website but I want to know the manual method using codes. I hope you can help me

推荐答案

手动方法是添加具有方法和属性的类.您的网页会将登录值传递给将调用db并进行验证的类.然后使用FormsAuthentication.RedirectFromLogin继续.
The manual method is to add classes which have methods and properties. Your web page will pass the values for login to the classes which will call the db and validate. Then use FormsAuthentication.RedirectFromLogin to continue.


这篇关于如何使用C#制作网站登录界面的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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