I'm using a Multi view nested inside <EditItemTemplate> of the Formview in order to simulate a Multi Page Wizard. I'm trying to pass the Username of the logged in user to a hidden field which in turn feeds a SQL parameter in order to update my database with the name user who edited the record.
I set the Value of the field in the Page Load fuction of the code behind to
UpdatedBy.Value = Context.User.Identity.Name
The hidden field shows up in Control Tree section of the Trace, It also shows up in the Forms Collection section of the Trace with the correct value assigned to it. However when I update the record the SQL Paremeter is blank.
Even if I set the Value of the Hidden Field in the Code behind to a static value the SQL paramter still blank when I try to update the record.
Can anyone give me an idea of what I might be doing wrong?
or Point me in the right direction?
Mark Buckley
I set the Value of the field in the Page Load fuction of the code behind to
UpdatedBy.Value = Context.User.Identity.Name
The hidden field shows up in Control Tree section of the Trace, It also shows up in the Forms Collection section of the Trace with the correct value assigned to it. However when I update the record the SQL Paremeter is blank.
Even if I set the Value of the Hidden Field in the Code behind to a static value the SQL paramter still blank when I try to update the record.
Can anyone give me an idea of what I might be doing wrong?
or Point me in the right direction?
Mark Buckley