Ask a Question related to ASP.NET Security, Design and Development.
-
Naijaacoder #1
Login-Validating(ASP.NET) against a DB
I'm looking for an ASP.NET(login page) that validates against a database.
And after succesful logon ..PRINT the USERS name on the Page(Session)!!
Can anybody help?
___
Newsgroups brought to you courtesy of [url]www.dotnetjohn.com[/url]
Naijaacoder Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
Validating by tab
I am currently trying to switch my flash coldfusion pages over to submit by flash remoting. I am having a problem with only validating the fields... -
validating datagridtextboxcolumn textbox, validating event fire twice, why?
Anyone has the same experience? I am trying to validate one of the textboxes inside a datagrid, but everytime when i click my mouse on another... -
session problem - login screen continually reloads after pressing the login button
I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the... -
LOGIN: ERROR- Failed to initialize policy manager. (IFOR_PM_FATAL) Login sessions denied.
Verify that you haven't set the system date by mistake to a far away future. All the licenses then become expired! Restoring the system to the... -
John G. #2
Re: Login-Validating(ASP.NET) against a DB
Here's one article.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp[/url]
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com
"Naijaacoder" <patrickige@acn.waw.pl> wrote in message
news:uHYgPqp5DHA.2720@TK2MSFTNGP09.phx.gbl...> I'm looking for an ASP.NET(login page) that validates against a database.
> And after succesful logon ..PRINT the USERS name on the Page(Session)!!
> Can anybody help?
>
> ___
> Newsgroups brought to you courtesy of [url]www.dotnetjohn.com[/url]John G. Guest
-
David Coe #3
RE: Login-Validating(ASP.NET) against a DB
You can take the user ID/password and compare them to what you have in the database. If an item is found that is matching, grab the user name (ie, David) from the database, and display the name in a label. If the name is something that you want to persist across pages, then you could store the name in a session variable and then display it on several pages across the app.
int iUser = 0;
SqlDataReader reader = myCommand.ExecuteReader();
while(reader.Read())
{
myLabel.Text = reader["FirstName"].ToString();
// Session["UserFirstName"] = reader["FirstName"].ToString();
}
if (iUser == 0)
// in valid user id/password
else
// continue
David Coe Guest



Reply With Quote

