0

I am very new to asp.net and c# using web developer express 2010.

I have created a standard web application using web developer express 2010 which comes with membership and roles.

Let say, if i want to create a user with username and password, demo and demo, how do i do that? and for example, let say i want to assign demo role to user, and let demo user to view certain links, how can i do that in asp.net?

In php,

for example,

   if($_POST['username'] == 'demo' && $_POST['password'] == 'demo') {
       $_SESSION['demo'] = true;
   }

   ....

   if($_SESSION['demo'])
       //codes

Please help me thanks

4

1 回答 1

1

您看过这个视频教程吗:将用户添加到您的会员系统。
http://www.asp.net/web-forms/videos/authentication/adding-users-to-your-membership-system

于 2012-11-26T15:03:05.397 回答