database structure
Client Table User Table
ClientId PK| UserId FK| ClientName | Address UserId PK| UserName | Password
int unique indentifier varchar varchar unique identifier varchar varchar
----------------------------------------------------------------------------------------------------
SCENARIO: When a user log in, his client will be displayed and he has the capability to add, edit, or delete records. ( List of clients will be displayed in a gridview, add edit delete will be done by the formview).
PROBLEM: When the user want to insert a new record the UserId field should automatically have the default value of the current logged on user.
please help me!!!!