42 - ASP.NET Login Control

42 - ASP.NET Login Control


Login control display a standard user login form with two text boxes that user can use to input their username and password in order to get access to private content on the website. The Login control supports lots of properties that can be used to modify the Look and feel and the functionalities of the control. If you want to access a page that requires authentication ASP.NET will automatically redirect you to the Login page, and after you have been authenticated you will be redirected back to the original page that you wanted to access
Closed Caption:

in this video we're going to be looking
at the asp.net login control the login
control display standard user login form
with two text boxes that user can use
two inputs the username and the password
in order to get access to private
content on the website the London
control supports lot of properties that
can be used to modify the look and feel
and the functionalities of the control
if you want to access a page requires
authentication asp.net we offer my
automatically redirected to the login
page so anything you want to access any
private page the asp.net has the ability
to redirect you to the login page you
have to do anything if you want to
anytime you click on a page does in are
you in are lots of you it will
automatically redirect you to the login
page and after you've been authenticated
you will be redirected back to the
original page that you wanted to access
all right you can use two forms you can
use two forms of orientation you can use
two times of orientation which are the
vertical and horizontal orientation
immigrants in order not to sure to log
in control to all users who have been
authenticated especially if you have had
a login country master page you can set
invisible when locked in property to
false so sometimes you play
I mean the ideal place to place a log in
control you can also please login
country on a master page so for example
at the top where user can whenever you
need it whenever you are coming to your
site it off to do anything we can city
log in at the top
so when they log into the website you
can set and the visible when logged in
property to false so that means when
these are logged in they won't be able
to see so let's go ahead now and modify
so first before we begin to go to our
login patron but we have a login page
this is our login piece of what we would
do is we would actually had to go to the
toolbox under the login heading you want
to drag the login control day so this is
what it looks like he can you know you
can make it
large big we can make the center and
that's to see here inside alarm you can
change the background of the baccalà
depart in the star the with the checkbox
tardy creators there's a lot of
properties a guy is to change day and
property you have the destination page
ero so that was these is register once
the click on log log in you can change d
so I want to change this to on home .
ESP if so want to click on login they
would take them to d so you can also
display remember me
so if you want these are to be
remembered once the tick on this check
box and show you this check box of AC
remember me
you can also let's see
remember display remember me we can set
it to true or false i'm going to leave
it is true here you can enable female
remember when we do theming you how to
fame to your website failure action here
is a failure you want to refresh the
page or you want to redirect to to login
page you know what else
so there's a lot of muscle mass serve
explanatory so the login button image
URL you can have instead of using the
bottom you can use it link you can use
the login button type it can be about to
remember we Dottie image and link button
so what else what else what else what
else
ok
so we want to do now is now that we've
hadded this log in to log in page so
let's let's try it this attempted so
we've got a user by the name of a domain
and a password with password on the
dollar sign
so let's try to login to our page enci
if he's going to be directors battery so
the user name is mean and the password
is password with a dollar sign on the
back to remember me next time again
yes you see now have been redirected
back to the on page which is the
property that we just say so now to go
back to the v WD 2008 and request to
view or actually what we should do the
best way to do it is to redirect to the
private page so so let's select our
logging country and instead of redirect
entity on the SPX we should direct to
the private page . aspx so okay staff
ok we want to us access this page okay
right so this is the pedo want to access
so let's try it again
so my username is not mean my password
is password and a dollar sign remember
me next time this is going to work on a
life page but I see now this is a
private page so we can access it because
we are now an authenticated user so the
property dolls i want to show you is the
show visible when he is locked in so
what I'm going to do is I'm going to
place another log in control in the
navigation section at the top here so
i'm going to place a login control day
but so i want to show you two properties
the first part is the orientation which
i'm going to set to be two horizontal so
i'm going to set this the orientation
oh so orientation by default is vertical
so I want to change its horizontal then
I want to remove the display remember me
how to set it to false so display
remember me i want to sell it to false
so it makes it smaller and as you can
see as what I mix it because I the top
here's a text so we can change it text
for the figure to text title text to
login name we're going to leave that to
be empty so we can become more slimmer
the scene is now so i can put a can
okay what else do I want to do I think
that's okay i want to set visible
visible when logged in to false false
ok so now i have people on that so what
I'm going to do now is if this will be
visible on our pages now because on the
master page so if we go to do login page
again save everything save everything
as you can see we have the login control
also in the navigation bar of the login
page so let's run our page now and when
we login we should be able to see that
so let's login it's low again and not is
going to be at mean our password is
going to be past where it was a dollar
sign and if we click on login on your
direct source to d I see now it has
disappeared because now we are
authenticated so that means is not going
to visit visible when we have logged in
so i decided to properties of be looking
controller i want to show you
so in the next video we're going to be
talking about other looking controls
thank you

Video Length: 08:32
Uploaded By: easyaspnet
Published: 6/11/2012
View Count: 66,607

Related Software Products
User Control
User Control

Published By:
Salfeld Computer

Description:
User Control allows you to block any undesired window title or any application / EXE-file. On the Internet you can define exactly which contents shall be allowed and which not. You can also explicitly allow only authorized applications and/or Internet addresses. Block the varied Windows systems areas (such as system control, setting on start menu, downloads from IE, Windows settings, etc.) with just a few mouse clicks. Network and multi-user capacity. Lock also your desktop and disallow moving, ...


Related Videos
Yes button grayed out in User Account Control Windows 10 (fix) - How to
Yes button grayed out in User Account Control Windows 10 (fix) - How to

Video Length: 01:48
Uploaded By: troubleshooterrors (9/7/2015)
View Count: 383,518

Facebook Increases User Control With New 'Cancel Account' Feature
Facebook Increases User Control With New 'Cancel Account' Feature

Video Length: 02:27
Uploaded By: The Onion (11/9/2011)
View Count: 244,233

Madden 16 Defensive Tips - How To User Control 101!
Madden 16 Defensive Tips - How To User Control 101!

Video Length: 06:45
Uploaded By: ZFarls (9/17/2015)
View Count: 148,065

Tutorial WPF | Creating And Using An User Control (C#) | VS 2012
Tutorial WPF | Creating And Using An User Control (C#) | VS 2012

Video Length: 11:38
Uploaded By: WhyThisTutorialNow (11/24/2013)
View Count: 117,677

Disable User Account Control (UAC) Windows 8
Disable User Account Control (UAC) Windows 8

Video Length: 01:08
Uploaded By: AvoidErrors (1/10/2013)
View Count: 64,454

What's New in Windows 7: User Account Control (UAC)
What's New in Windows 7: User Account Control (UAC)

Video Length: 04:02
Uploaded By: Chris Pirillo (1/19/2009)
View Count: 47,121

Madden 13 Tips - Who To User Control On Defense?
Madden 13 Tips - Who To User Control On Defense?

Video Length: 06:12
Uploaded By: PrimaGamesVideo (9/18/2012)
View Count: 41,330

Copyright © 2026, Ivertech. All rights reserved.