Hello,
I have a editable gridview in my aspx page. Users can enter records and after hitting submit using LinQ I am inserting the records to the database. It is working absolutely fine.
Dim db as new empDBDataContext
Dim rw As GridViewRow
Dim emp as new employee
emp.name="test"
emp.city="NYC"
emp.age=40
For each rw in GridView1.Rows
Dim cert as new certifications
cert.Name=CType(rw.FindControl("lblCert"), TextBox).Text
cert.score=CType(rw.FindControl("lblScore"), TextBox).Text
emp.cert.add(cert)
Next
db.emp.insertonsubmit(emp)
db.submitChanges()
I am not able to figure out how to update the records. I am populating the records in the gridview once the user hits submit I need to update the existing records.
How can I do that using LinQ