<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
"server"
>
</
asp:UpdatePanel
id
"UpdatePanel1"
contenttemplate
asp:Login
"Login1"
style
"Z-INDEX: 110; LEFT: 350px; POSITION: absolute; TOP: 100px"
BackColor
"White"
BorderColor
"#F1F6FE"
BorderPadding
"4"
BorderStyle
"Solid"
BorderWidth
"1px"
Font-Names
"Verdana"
Font-Size
"0.8em"
ForeColor
"#333333"
Height
"140px"
Width
"340px"
UserNameLabelText
"ID:"
DestinationPageUrl
"Welcome.aspx"
LoginButtonStyle
"#41519A"
/>
TextBoxStyle
TitleTextStyle
"#2153AA"
Font-Bold
"True"
InstructionTextStyle
Font-Italic
"Black"
asp:UpdateProgress
"UpdateProgress1"
ProgressTemplate
img
src
"images/loadingAnim.gif"
"Z-INDEX: 110; LEFT: 400px; POSITION: absolute; TOP: 300px"
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
e
System.EventArgs)
Handles
Me
.Load
If
Not
Page.IsPostBack
Then
Request.IsAuthenticated
AndAlso
String
.IsNullOrEmpty(Request.QueryString(
"ReturnUrl"
))
Response.Redirect(
"~/NoAuthorized.aspx"
)
End
Login1_Authenticate(
System.Web.UI.WebControls.AuthenticateEventArgs)
Login1.Authenticate
Membership.ValidateUser(Login1.UserName, Login1.Password)
Dim
usrInfo
MembershipUser = Membership.GetUser(Login1.UserName)
e.Authenticated =
True
Else
False
Login1_LoginError(
Login1.LoginError
Login1.FailureText = Resources.traduction.failureText
Login1_LoggingIn(
System.Web.UI.WebControls.LoginCancelEventArgs)
Login1.LoggingIn
System.Threading.Thread.Sleep(3000)
Ed Price - MSFT edited Original. Comment: Tags
Thanks, I like your code