0 Replies - 1328 Views - Last Post: 08 September 2009 - 11:12 PM Rate Topic: -----

#1 Baltar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 31-August 09

text boxes two way binding using linq to sql

Posted 08 September 2009 - 11:12 PM

Im using Linq to SQL ti bind texboxes data context. If i alter the text in the text boxes and push a button "store" i need the data to be updated in the database as well. How can i do that?

So far I know this works - i create a new variable like:

Persons new_person = new Persons();
new_person.name = txtbox_name.text;
new_person.age = txtbox_name.text;

and so on...

I delete the the person being alterd and then i submit the new person

db.insertonsubmit(new_person);

It should be much easier with two way binding but i do not know the syntax, help me out guys...

Is This A Good Question/Topic? 0
  • +

Page 1 of 1