-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: PrabhuRajan_G
Message 3 in Discussion
hi sandeep,
check for this in web.config file,
<authentication mode="Forms">
<forms name="Auth" loginUrl="Authen.aspx">
<credentials passwordFormat="Clear">
<user name="X" password="X"/>
</credentials>
</forms>
</authentication>
here, Authen.aspx file is your login page
<authorization>
<deny users="?"/> <!-- Allow all users -->
</authorization>
? means, it deny anonymous (unauthenticated) users.
And in the Login page, under button click event place this code
Private Sub cmdPress_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdPress.Click
If FormsAuthentication.Authenticate(txtusername.Text,
txtpassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtusername.Text,
True)
Response.Redirect("sample.aspx")
Else
Response.Write("No such user")
End If
End Sub
Here, sample.aspx is your Redirected page for Authenticated User...
If u have any Doubt further..clarify me......
WITH REGARDS,
G_PRABHURAJAN
One and only Ash. Find out all about her. Only on MSN Search
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]