Page view counter
HomeLearnVideosLesson 9: Securing your Web Site with Membership and Login Controls  

Lesson 9: Securing your Web Site with Membership and Login Controls

In this lesson, you will explore the new membership capabilities of ASP.NET 2.0. In addition, you will learn about role-based security, and how you can use roles to control access to your web site.

Duration: 33 minutes, 31 seconds

Date: 21 July 2005

Watch the video   |   Download the video   |   Get VB code  or  C# code

Comments : 71

Leave a Comment

nivash85 : On March 05, 2008 12:51 AM said:

usefull for first time user

bhavin123000 : On March 09, 2008 8:40 AM said:

ya but voice and visual video is not synchronize proplery in this video

can you upload the proper video?

shotta77 : On March 10, 2008 7:12 PM said:

This video needs to be replaced.

macaroo : On March 11, 2008 12:24 AM said:

this video is poorly done.. the audio works.. the video is quite mixed up.

ChachaJohn : On March 12, 2008 7:12 AM said:

Synchronize the video with the audio ...

Grytpype : On March 19, 2008 5:08 PM said:

Any danger of this being fixed?

Grytpype : On March 19, 2008 5:18 PM said:
arun_kumrs : On March 29, 2008 12:26 AM said:

The video is working fine. The only problem is that you could be missing this audio codec www.wmplugins.com/ItemDetail.aspx. So i would suggest all of those, who have the problem with the audio, to download and install this codec.

regards

jpavel : On March 30, 2008 7:45 AM said:

No, the video isn't wornking fine. After 24 to 25 minutes, there's a problem that the video freezes and the audio keeps going on. Before of it, the video is a little bit delayed from the audio, even using the repair tool. It should be upload again.

joel.min : On April 04, 2008 7:12 AM said:

The audio and video is not in sync.

rgprints : On April 07, 2008 3:20 PM said:

At around 25 minutes the video stops. This is still true with the audio codec installed, and with repairvideo applied (see prior comments). Clearly, this course file needs to be fixed and replaced.

In the meantime, this may work for you, although it is a little imprecise at step 2.

I was able to get the video to play by doing the following:

 1. Reopen the course file.

 2. Drag the slider (Seek) to the right to a little beyond where the video had stopped. (Note, if you don't drag it far enough to the right this won't work and you have to start over by reopening the course file. Just dragging the slider to the beginning is not enough.)

Note that if you drag or click the slider to an earlier part of the presentation (before 24:12 or so), the video will again lock at 24:12 and the only way to get it back for the entire presentation is to start over.

wleearmitage : On April 08, 2008 12:26 PM said:

This tutorial like previous ones, seems to be based on using SQL Server Express Edition. I have the full version of SQL Server 2005 installed. When I open up the Web Site Administration Tool and Click on Security I get an error page that says the Database is not set up. Any help on pointing to my version of SQL Server and setting up the proper database would be helpful. Thanks, Lee

King Lem : On April 18, 2008 1:14 PM said:

Lessee here...no video, no audio, and the fixes didn't work. Could we get a re-post of this please?

joblot : On April 22, 2008 6:51 AM said:

I am having issues setting membership on the website. When click on Security on ASP.NET Web Site Administration Tool I get the following error:

"There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database."

I am part of administration group and have created SQL Server database for use by the SQL Server providers in ASP.NET using Aspnet_regsql.exe utility

I also tried testing AspNetSqlProvider on Provider tab and it gives me following error

Could not establish a connection to the database.

If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I am unable to find what is going wrong and how can I fix this issue.

pankajbanga : On April 22, 2008 8:50 AM said:

hi wleearmitage & joblot

first, create a sql server database for use by sql server provider in asp.net. u can do this using aspnet_regsql.exe utility under C:\Program Files\Microsoft Visual Studio 8\VC> folder. use the default db name. db with name "aspnetdb" will be created for use by asp.net sqlserver provider.

see this for more information msdn2.microsoft.com/.../ms229862(VS.80).aspx

second, change the connection string in machine.config file in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG folder.

locate the XML element <connectionStrings> and change connection string of "LocalSqlServer" to:

<add name="LocalSqlServer" connectionString="Data Source=yoursqlservername;Integrated Security=True;Database=aspnetdb" providerName="System.Data.SqlClient" />

By default the web site administration tool uses the "LocalSqlServer" as its connection string, which is set to use sql server express. In order to make it work with your edition of sql server, you need it to point to the instance on your machine.

Manmadhan : On April 23, 2008 5:55 AM said:

voice and visuals is not synchronize properly in this video.. Pretty tough to follow both..

Manmadhan : On April 23, 2008 6:06 AM said:

from 24th minute video is stuck.. Poor video quality.

David55 : On April 24, 2008 3:08 PM said:

This video is bound to cause frustration for new users as there is no mention that the database tables for user and login management have already been created. See above for the executable to run to create them. Also, an issue that arose several times for me, even with the proper tables created, was that 'create user instances' was set to false in sql server. Run these commands in SQL Server to set to 'ON':

exec sp_configure 'user instances enabled', 1

reconfigure

jason.vogel : On April 24, 2008 7:03 PM said:

As many other users have pointed out, this video quality is messed up. The video and audio are out of sync in many places and after about 24 minutes the video just stops for a couple minutes while the audio continues.

WJSimacek : On May 04, 2008 12:33 AM said:

My codec could not play any audio.

tmorton : On May 08, 2008 9:58 PM said:

Hi all, thanks for alerting us to the problem here.  We'll try to get an updated video here; I am not sure if this is possible.

ccarrer : On May 09, 2008 9:56 AM said:

Great video.

kavand : On May 27, 2008 7:50 AM said:

this is very helpful even for experts

arnolf : On May 28, 2008 1:00 PM said:

Good tutorial to hear.

But, what's wrong with the video? this is not the only tutorial which breaks appart when the Presenter's mouse moves.

( yes, I do have the latest software and codecs )

tommy9 : On May 30, 2008 8:25 AM said:

Lession 5 & 9 have the audio and video problem. Please fix and re-post as soon as possible. Thanks for a very helpful training course

frank der penner : On June 03, 2008 5:25 AM said:

Hi Everybody!

we have build an own user-/membership controle based on oracle tables which is used by many web solutions. however the solution in the video is build in one solution.

What would you say how complicated it would be to make this membership-solution available for diffrent webapplication on one server

Greets!

FrankTheBummer

Baystray : On June 03, 2008 8:45 PM said:

Just a suggestion, but it worked for me. I watched this video in Media Player Classic. When I saw it having problems, I right clicked the screen and set the "Audio time shift (ms)" to 10000. It isn't quite perfect, but close enough to be much more easily viewed.

There's still the problem with the video getting stuck though. rgprints's suggestion is the only way I get past that. I haven't tried encoding to a better format though.

jruder : On June 05, 2008 4:14 PM said:

This is frustrating...it has been a month.  At least a update on if anything is going to be fixed would be nice.

sorta common curtesy...

tmorton : On June 05, 2008 9:15 PM said:

We are still working on this.  This video is nearly 3 years old, and as such locating the original files is a challenge.  This video may need to be recreated.  I know how frustrating this is, but as of right now I do not have an ETA.

js1971 : On June 05, 2008 11:13 PM said:

Oh! ..... This video was horrible! ...... first i thought i would buy those 500 videos but now i think i would never buy them because what if they are the same like this one is :(

RasmusAnde : On June 06, 2008 8:19 AM said:

Why can't I see this video ?

When I download it, nothing happends when i try to wiew it =(

js1971 : On June 06, 2008 9:03 PM said:

Well, first of all i also had the same problems you guys had but then i made it work fine for me. First, when you download it then after downloading open up the zip file and then right click on the file "09 - Securing your Website with Membership and Login Controls" and chose from the menu open it with windows media player (make sure you have the new version 9.0 of media player – it’s free to download from Microsoft website) and then when you see Bob Tabor creating the SecurePage.aspx then make sure you change your file type to C# otherwise your code won't work plus, when he writes those codes in  SecurePage.aspx then just pause the video and type them into your file ...That's it!!!

Best!

js1971 : On June 06, 2008 9:10 PM said:

I apologize … in my last post, i mentioned file type but actually, it is language. Just change the language="C#" from language="VB"...good luck!

JoeStagner : On June 07, 2008 4:09 PM said:

Hi all - I'm have a whole series of HowDoI videos on Membership (to replace this onw) in a couple of weeks.

ejm : On June 12, 2008 5:11 PM said:

Can membership and roles be integrated with an exisiting users table from a database?

Or, can the controls be wired up with the existing database?

Thanks,

EJM

AdamBies : On June 19, 2008 10:20 AM said:

I also saw the video freezes around 23:00 - 24:00

I can skip forward a little bit past the freeze point but can't really get the video for a minute or two past where the video froze.

Not really complaining since these are free and greatly appreciated in my current situation having to crash-course myself into ASP.NET.  These videos are much better than any of the other tutorials and things I have tried online.

tmorton : On June 19, 2008 10:16 PM said:

Looking forward to the new series, Joe!

icelava : On June 22, 2008 3:06 PM said:

Looks like the codec for this video, Sipro Lab Telecom ACELP.net, is not available for x64 Windows Vista.

yay.

elanchelian : On July 08, 2008 1:10 AM said:

Hi, the Video works well, when played with 'Nokia Multimedia Player', i tried with Ver 1.1

okinsky : On July 08, 2008 9:34 PM said:

Thanks to elanchelian I tried it on my nero player and it seems to work. I couldn't play anything with media player.

ntssoft : On July 11, 2008 7:17 AM said:

这视频不能播放,需要音频解码,太麻烦了,赶紧换掉吧!

在这里可以下载这视频需要的音频解码:

www.voiceage.com/acelp_eval_eula.php

下载链接在最下面位置

freddylavaca : On July 15, 2008 10:10 PM said:

Gracias,

Era lo que me faltaba para aprender,cada dia aprendo mas gracias a estos videos son muy interesante,quiera Dios y las cosa sigan asi.

God bless you all.

silverlight.shailendra : On July 26, 2008 1:38 AM said:

Really good video. :-)

abiy : On July 28, 2008 3:52 AM said:

hi

it is really good video. but some lesson has not sound

abelanet : On July 28, 2008 1:20 PM said:

Pitty that this video doesn't work after 24min or so. I had issue in the past with the ones previous to this one and so never made it to no.9. Now that the others work I see that this was never fixed. Anyway I still like the serious.

good work.

azamat : On August 07, 2008 4:05 AM said:

I also saw the video freezes around 23:00 - 24:00

I can skip forward a little bit past the freeze point but can't really get the video for a minute or two past where the video froze.

Not really complaining since these are free and greatly appreciated in my current situation having to crash-course myself into ASP.NET.  These videos are much better than any of the other tutorials and things I have tried online

cv_vikram : On August 08, 2008 11:02 AM said:

Very good video...thanks

cv_vikram : On August 08, 2008 11:02 AM said:

Very good video...thanks

julianoooo : On August 13, 2008 3:49 PM said:

does this video had problems while playin? Or my player is f..... up? Time line 24:10 ...?!

julianoooo : On August 13, 2008 3:52 PM said:

Oooops, now i see that everybody have the same problem. It is an interesting lesson. Shame to be missed like this.

julianoooo : On August 13, 2008 3:57 PM said:

Guys, (azamat and abelanet) as I see its our problem. Seems like Microsoft always disappoint us. Try some other player. Someone upstairs is satisfied with nero media player. Someone else with NOKIA. :-) Lets try

suchiP : On August 26, 2008 3:05 AM said:

great vedio again.thanks a lot.But in this particular vedio

while using the password recovery control it does not send email to the respective email id bcoz of some configuration setting error which comes on the vedio also.Plz help how to set the configuration for sending mails?how to set the from email id??

   And also plz give some examples on windows,forms and passport authentication.....

nhoan : On August 26, 2008 4:31 PM said:

Can't open this.  please reupload the file.

gargjyoti : On August 30, 2008 6:51 AM said:

hello guys, this is Jyoti. Will anyone please help me? Actually i cann't play this and further video and audio as well. will any one tell me why i am facing this problem and what will be solution for this.

By the way last vedios were ruuning well on my system.

Morfos : On August 31, 2008 2:24 AM said:

This videofile(but uncorrupted) is also available as a free sample at learnvisualstudio.net link here: www.learnvisualstudio.net/.../vwd_09cs.zip

nooodels : On September 07, 2008 7:11 AM said:

FYI, Joe has effectively made this video obselete with his new video series. You're better off going there than trying to get this one to play.

www.asp.net/.../security-videos

saumy : On September 19, 2008 1:09 PM said:

video and audio are not properly synchronized.

samuel24 : On September 29, 2008 5:00 AM said:

thanks really superb!!!!!!!

sam1020 : On September 29, 2008 12:08 PM said:

hi.. u may even try this "How Do I.." Video.. its very gud!

www.asp.net/.../video-45.aspx

atarikg : On October 04, 2008 1:55 AM said:

thanks for video and thanks for fixing arun_kumrs

puneetr : On October 12, 2008 12:45 AM said:

simply a dynamic not a dynamic its a dynamite.first time i feel that someone in this world exixts who make me understands the concepts  of programming .good job done

Thanks

djibril_chimere_DIAW : On October 23, 2008 12:02 PM said:

Thanks! Jërëjëf!

Ricardo_Rodrigues : On November 03, 2008 1:03 PM said:

Works fine for me, people who don't see the video sync, must have codecs config problems.

Umeshd : On November 08, 2008 5:02 AM said:

I would request you to pls improve video quality of this clip.

phill81_emery : On November 08, 2008 4:47 PM said:

hi does anyone know where i can obtain a working video it works fine until it gets to around 25 mins then the voice and audio go out of sync. these videos are really helpfull just a shame about this one.

MSummers : On November 11, 2008 6:12 AM said:

You should take this lesson off line and create another one. The instructor was going way to fast for his system resourses.

You should review the lessons before you post the lessons online

djafer : On November 11, 2008 7:21 AM said:

Çok teşekkürler, son derece öğretici bir video.

xixao : On November 12, 2008 12:34 PM said:

The video is still broken. It happened at a pretty crucial part for what I am trying to learn. I'm lost at this point...

glrooks : On November 16, 2008 9:18 PM said:

Video requires a codec "Sipro Lab Telecom ACELP.net (130)" that is available for Vista 32, but does not work with Vista 64 - at least I cannot get it working.

ixxixxi : On November 17, 2008 5:26 AM said:

This is where the video starts cutting out at 20:05

How to configure the ContinueDestinationPageURL link. Be in design mode on the Signup.aspx page. Click the create user task wizard arrow on the form. Make sure the "Step" is selected as complete. Click template itself to hi-lite the whole template.  In the properties window go to Behaviors and in ContinueDestinationPageURL select the blank box to get the elipses. Select login from the right pane and hit ok. then right above that, set CancelDestinationButtonURL to Default.aspx page. GO BACK to the create user task wizard arrow and set the Step: back to "Sign up for your new.." so it runs it from the sign-up step instead of loading the Continue step.  He then runs it from the signup.aspx as the startup page. Create a sample account, it should brign you to successful created page, hit continue and it should bring you back to log-in page.

ixxixxi : On November 17, 2008 5:45 AM said:

So at 23:40 or so,

hes creating a redirect for the secure page.  Its not showing how to get to the form1_load event handler and some other stuff.  To get the form1_load event handler, go to the secure.aspx page in code view, click the Object dropdown and select form1. in the Event dropdown, select load and it will create the  Protected Sub form1_Load event handler. Now when he talks about user identity authenticated, this is what the handler and code should look like:

Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)

       If User.Identity.IsAuthenticated = False Then

           Server.Transfer("login.aspx")

           End If

   End Sub

Leave a Comment

You must be logged in to leave a comment. Click here to log in.