A way to insert a value into a SqlDataSource??
Posted on 2008-10-29
I am inserting a new record from the detailsview of insert mode.
I have a SqlDataSource to insert a new record.
If possible, I would like to insert a user's value coming from the WindowsIdentity.GetCurrentUser(),Name.
InsertCommand="Insert into table(type, title,name) values(@type,@title,'admin')
Instead of 'admin', I would like to grab the userID using WindowsIdentity.GetCurrentUser(),Name.
and attach to that sqldatasource.