Logg in

  • Thread starter Thread starter rcoco
  • Start date Start date
R

rcoco

Hi,
I have a datagrid that insert data. One column is for user name and it
was being done manually. I mean the user has been inserting the name
manually. I want to Cahnge it so that when a user loggs in the name
automatically rights his name is that possible if yes how can I do
this?
 
Hi,
I have a datagrid that insert data. One column is for user name and it
was being done manually. I mean the user has been inserting the name
manually. I want to Cahnge it so that when a user loggs in the name
automatically rights his name is that possible if yes how can I do
this?

It's possible if you used authentication.

Security Features in ASP.NET - Authentication
http://www.asp101.com/articles/cynthia/authentication/default.asp
 
I have a datagrid that insert data. One column is for user name and it
was being done manually. I mean the user has been inserting the name
manually. I want to Cahnge it so that when a user loggs in the name
automatically rights his name is that possible if yes how can I do
this?

What authentication method are you using...?
 
Thanks all,
Most proberbly this ain't a good question, but what's authentication
exactly?
Thanks
 
Thanks all,
Most proberbly this ain't a good question, but what's authentication
exactly?
Thanks

Authentication is a proof of identity. Your user has to login to the
site with his username and pwd. After that you can identify his
username.
 
Thanks,
I'm using Forms-based authentication. I've been following the examples
but i get a little. Do I have to create a new form or I use the same
page. since every user has his username and password. Please explain
to me how it works please? It's my first time to try this.
Thanks.
 
Thanks,
I'm using Forms-based authentication. I've been following the examples
but i get a little. Do I have to create a new form or I use the same
page. since every user has his username and password. Please explain
to me how it works please? It's my first time to try this.
Thanks.

Once the login has been successful, you should be able to retrieve the name
of the currently logged-in user by User.Identity.Name
 
Thanks,
I'm using Forms-based authentication. I've been following the examples
but i get a little. Do I have to create a new form or I use the same
page. since every user has his username and password. Please explain
to me how it works please? It's my first time to try this.
Thanks.

If user is already authenticated, his loginname normally is the
Context.User.Identity.Name, so just use

Label1.Text = Context.User.Identity.Name;

or something like this.

If you don't know how to work with the Forms based authentication:
http://samples.gotdotnet.com/quickstart/aspplus/doc/formsauth.aspx
 
Back
Top