473,472 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

FormsAuthentication.Authenticate

FormsAuthentication.Authenticate(txtUser.Text, txtPassword.Text)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would you
check these against details held in an xml file? Is there a way of telling
the <authenticationelement to validate against records in a file, or is it
a case of me doing that in code?
Aug 11 '06 #1
2 1425
Forgot to add, I am using Visual Studio 2003.

"cashdeskmac" wrote:
FormsAuthentication.Authenticate(txtUser.Text, txtPassword.Text)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would you
check these against details held in an xml file? Is there a way of telling
the <authenticationelement to validate against records in a file, or is it
a case of me doing that in code?
Aug 11 '06 #2
You need toi add custom code for checking it agains the xml.
FormsAuthentication.Authenticate checks against the userlist found in
<credentialstag.

Regards,
Rohit

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
Forgot to add, I am using Visual Studio 2003.

"cashdeskmac" wrote:
FormsAuthentication.Authenticate(txtUser.Text, txtPassword.Text)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would
you
check these against details held in an xml file? Is there a way of
telling
the <authenticationelement to validate against records in a file, or
is it
a case of me doing that in code?

Aug 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: George Durzi | last post by:
When you call FormsAuthentication.SignOut(), is the FormsAuthentication cookie supposed to be destroyed automatically? I'm creating my FormsAuthentication cookie by doing: HttpCookie oCookie =...
1
by: dotCore | last post by:
Hi, I have VS2003.NET, XP Pro and SQL 2000. The .NET framework is 1.1 The problem I am having with the source code is that I cannot authenticate any user. The sproc returns the user name from...
1
by: Danny | last post by:
Hi there, I was wondering if anyone would be able to shed some light on the following behaviour for me. I have an application that is using Forms Authentication with non-persistent cookies, a...
3
by: T. Regan | last post by:
I have a test app where I have Forms Authentication set up. When I build and run the app as http://localhost/testapp/login.aspx, it runs correctly. I get the login prompt and the proper...
4
by: Jeff B | last post by:
I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the site, I retrieve the roles from the database and...
2
by: Chad Beckner | last post by:
Hi everyone, I am developing a site in which the root will be set with Anonymous & Basic permissions. Past that I will have an application (directory) in which I will be developing...
3
by: David | last post by:
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up...
5
by: Åženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when...
0
by: Rof | last post by:
I am using FormsAuthentication.RedirectFromLoginPage(...) to give my users a cookie, but I want to include other bits in the cookie, like their name, what they are asking for, and so on. I have...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.