locked
insert row RRS feed

  • Question

  •  I have forgotton how to add a new row in a table using linq.
    I am using silverlight/vb.net

    this doesnt work below

       <OperationContract()> _
    Public Function register(ByVal myid As String, ByVal pswd As String, ByVal fname As String, ByVal form As String) As Boolean
            Dim db2 As New trigB.Web.DataClasses1DataContext
            Dim temp As login2
            Dim mylist As New List(Of sumResult)
    
    
            'what this does is get data from the database in results which is a list undeclared 'variant
            'with this list I populate each record into an existing class.
    
    
    
            temp = New login2
    
            temp.fname = fname
            temp.id = myid
            temp.password = pswd
            temp.form = form
    
            db2.login2s.InsertOnSubmit(temp)
            '
            db2.SubmitChanges()
    
    
    
            Return True


    Saturday, August 21, 2010 9:53 AM

Answers

  • solved:
    1 field  entered was bigger than the max allowed


     

    Saturday, August 21, 2010 10:22 AM