This topic is locked

Session('UserID')

8/7/2007 6:26:22 PM
ASPRunnerPro General questions
T
telemark author

I have set up the add page to display the user name in one of the fields using Session("UserID") in the properties, this is a read only field and works great.
My problem is I would like to do the same thing on the edit page for the person who edits the record. I have used the same code Session("UserID") to update a different field, again read only. However the record stays blank.
The idea is that on the list page I get the persons ID that adds a record and the persons ID that edits the record, most of the time these will be different.
Any ideas would be great.
Thanks
Andy

Sergey Kornilov admin 8/7/2007

Andy,
use BeforeEdit event and the following code:

dict("FieldName") = Session("UserID")
T
telemark author 8/8/2007

Thanks that worked a treat.
I think I am almost ready to hand it over to the customer concerned, just a couple more tweaks to put in (which I will try and solve myself before I inevitably hit the forums).
Thanks for a great product and support, without it I would have been lost. I'm really pleased I bought it and the responses to problems are very fast and always work.
Andy