views:

27

answers:

1

Ok, got my query going, up and running but it doesn't appear that I have got it working correctly!!

My query is as follows:

MyEnt updatefeedback = new MyEnt();

tblWeight newfeedback = (
    from weight in updatefeedback.tblWeights
    where weight.MemberId == memberid
    where weight.LocationId == locationid
    where weight.PriKey == prikeyint
    select weight).Single();

newfeedback.Feedback = feedbacktext;

updatefeedback.SaveChanges();

Basically, all I am trying to do is insert the no feedback text (feedbacktext) into Feedback. However, despite everything looking good and being populated, I don't believe tblWeight is actually being updated.

Any advice, greatly appreciated.

A: 

Thanks for the profiler tip Morteza.

It was indeed working absolutely fine - I was being an idiot and re populating the radgrid's item template each time it loads...silly me.

Ricardo Deano