0

dear all,

i need help about asp.net. i'm making application with login form from visual studio and using loginname in every pages, my questions is:
how to get username online into database when user insert/update? because i wont to know 'who create this data'

best regards,
martin

2
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by Renukavani
0

Create Session variable or Hidden control and assign username into session vairable or hidden control when the login is succssfull. Using session variable u can know who is inserting the data or updating

Edited by Renukavani: n/a

0

Thanks for your help...
i need help again... after using cookies...
but i don't understand how to get username into database...

maybe some code....

if someone insert/update his name can find in database 'create by'

0

Once the login is successful u can came to know the username as 'Create by', that assign into session or cookie variable. When user is try to insert/update the record, pass this username into backend to update 'Create by' using the Insert/update query.

0

ok, i understand
when user push insert/update button, he send his cookies

my program is working now

best regards,
martin

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.