Results 1 to 3 of 3

Thread: Data Not Updated using LINQ + sql 2000

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2008
    Posts
    474

    Data Not Updated using LINQ + sql 2000

    Code:
    protected void Page_Load(object sender, EventArgs e)
        {
            DataClassesDataContext dbsonia = new DataClassesDataContext();
                  
            student result = dbsonia.students.Single(p => p.roll == 1);
            result.Name = "S";        
            dbsonia.SubmitChanges();
         }
    I have the following records in the table student(see in fig 1).
    I am trying to update the Name of student whose Roll no =1. But Record is not updated in the database,can somebody help me out.
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width