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? 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
"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...?
Thanks all,
Most proberbly this ain't a good question, but what's authentication
exactly?
Thanks
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.
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.
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
"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
Thanks
This means that I have to create a Logi forms?
Thanks
"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...?
On Mar 16, 2:27 pm, "rcoco" <nc******@yahoo.cawrote:
This means that I have to create a Logi forms?
Yes.
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
"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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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:
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |