Author: mike.newman | Posted on: 10/10/2008 11:01:15 AM | Views : 401

 Hello,
I am fairly new to asp.net 3.5's Features, I am having an issue passing a Logged  User's "UserID" Value  in to an new insert statement. I am able to insert new records but can not get the UserID field to populate.
Here is the code I am trying to pass. 
 
 Protected Function Evaluate(ByVal context As System.Web.HttpContext, ByVal control As System.Web.UI.Control) As Object
        Dim currentUser As MembershipUser = Membership.GetUser()
        If currentUser Is Nothing Then
            'Either Membership is not setup or the visitor to this page is anonymous
            Return Nothing
        Else
          &nb ...

Go to the complete details ...