to store the session username and date to table [Resolved]

Posted by Suniluc under ASP.NET on 2/12/2013 | Points: 10 | Views : 1179 | Status : [Member] | Replies : 3
i want to store the username and date to tables so that i can show only data relevant to that particular user....how to do this?




Responses

Posted by: Suniluc on: 2/14/2013 [Member] Starter | Points: 25

Up
0
Down

Resolved
i got it...in the page load event add the code

string userName = Page.User.Identity.Name;

by using thsi code we can get the currrently logged in user...

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 2/12/2013 [Member] Starter | Points: 25

Up
0
Down
hii
better to use forms authentication in web config file in authentication mode.




Thanks&Regards
Aswini Aluri


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suniluc on: 2/12/2013 [Member] Starter | Points: 25

Up
0
Down
how it is done? will you plz explain..

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response