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 : 48

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

Leave a Comment

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

Featured Product

ComponentArt's New AJAX Approach

Page view counter
Microsoft Communities