473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Logg in

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?

Mar 16 '07 #1
13 1171
On Mar 16, 7:53 am, "rcoco" <nclau...@yahoo.cawrote:
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/cynth...on/default.asp

Mar 16 '07 #2
"rcoco" <nc******@yahoo.cawrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
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...?
Mar 16 '07 #3
Thanks all,
Most proberbly this ain't a good question, but what's authentication
exactly?
Thanks

Mar 16 '07 #4
"rcoco" <nc******@yahoo.cawrote in message
news:11*********************@y66g2000hsf.googlegro ups.com...
Most proberbly this ain't a good question, but what's authentication
exactly?
http://www.google.co.uk/search?hl=en...tication&meta=
Mar 16 '07 #5
On Mar 16, 10:41 am, "rcoco" <nclau...@yahoo.cawrote:
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.

Mar 16 '07 #6
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.

Mar 16 '07 #7
On Mar 16, 1:51 pm, "rcoco" <nclau...@yahoo.cawrote:
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/quickst...formsauth.aspx

Mar 16 '07 #8
"rcoco" <nc******@yahoo.cawrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
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
Mar 16 '07 #9
Thanks
This means that I have to create a Logi forms?
Thanks

Mar 16 '07 #10
"rcoco" <nc******@yahoo.cawrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
This means that I have to create a Logi forms?
Er, you said you are using forms-based authentication...

Therefore, you *already* have a login form, no...?
Mar 16 '07 #11
On Mar 16, 2:27 pm, "rcoco" <nc******@yahoo.cawrote:
This means that I have to create a Logi forms?
Yes.

Mar 16 '07 #12
Hi,
Thanks for the help. The example you showed me
http://samples.gotdotnet.com/quickst...formsauth.aspx
has a line is it supposed to be writen on the login form?

If(FormsAuthentication.Authenticate(Username.Text, Password.Text))
{
FormsAuthentication.RedirectFromLoginPage(Username .Text, false);
}
Thanks

Mar 17 '07 #13
"rcoco" <nc******@yahoo.cawrote in message
news:11*********************@l75g2000hse.googlegro ups.com...
Thanks for the help. The example you showed me
http://samples.gotdotnet.com/quickst...formsauth.aspx
has a line is it supposed to be writen on the login form?

If(FormsAuthentication.Authenticate(Username.Text, Password.Text))
{
FormsAuthentication.RedirectFromLoginPage(Username .Text, false);
}
Thanks
That above code is a piece of server-side VB.NET which actually does the
authentication...
Mar 17 '07 #14

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

Similar topics

1
by: Carramba | last post by:
Hi! I have logg in page, after clicking loggin the pop up window apiears and if user loggins it closes, I want to reload if loggin succes ( I have handling sistem for it) ,page were user have...
0
by: lajo_79 | last post by:
my service has a functions that gets triggered by a timer.. my code catches a nullref exception but i cant get the stacktrace for it... i only get information about which function that generated...
9
by: viktor9990 | last post by:
I wonder if it is possible from a button click or a link to logg off (some unwanted logged on users or all users) in an asp.net application with session.timeout or another way?Thankfull for any...
0
by: Henrik | last post by:
Hi! I would like to make a script that can log in to another webpage, and enter a second page, and then get the HTML there, and then save it to a DB/file. The login script is like this: ...
3
by: Metalzed | last post by:
Hi I want to have a log so in my table i got a TEXT field called LOGG. I want to update this field with new data by adding more text to field. I am using MS SQL 'test' + 'test' doesn't...
0
by: rcoco | last post by:
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...
4
by: arashi | last post by:
I get this msg: Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at /web/www/frac/users/s/students/katalog/brukere/login.php:2) in...
5
by: paitoon | last post by:
Well, actually im bad in this im not sure if i post the title correctly... My problem is I make a site which people can comment the picture each other.. every comment will be sent to their email...
7
by: mail2sakthi2003 | last post by:
Hi, Iam a begginer and i tried to establish the connection with my SQL DB through JAVA. The connection got established but i could not retrieve the data through the query. Could you...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.