Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:40:55+00:00 2026-06-03T01:40:55+00:00

To simplify the question, I have a single textbox control which I want to

  • 0

To simplify the question, I have a single textbox control which I want to apply two way binding. I have an object class named Customer for example on the server side, the silverlight application is obviously a separate project.

public class Customer
{
    public string Name{ get; set; }
}

In the WCF Service I have query which populates the customer name, and returns a list of type Customer.

List<Customer> data = new List<Customer>();

On the client side I then have this bound to the textbox control:

<TextBox Canvas.Left="345" Canvas.Top="12" Height="23" Name="tb_customer" Width="120" Text="{Binding Path=Name}" />

List<ServiceReference.Customer> data = e.Result;
tb_customer.DataContext = data[0];

This is working fine, and is binding the customer name to the textbox control. But my question is, when I change the value on the client side how do I go about sending the modified customer name back to the data source, in this case a table named customers in sqlserver. Would I need to implement INotifiyPropertyChanged on the customer class? But obviously the customer class is sitting on the server side, so do I need to create a local instance of the customer class on the client side, and upload these changes via the wcf service back to the server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:40:57+00:00Added an answer on June 3, 2026 at 1:40 am

    Set the Textbox up like this:

    <TextBox Canvas.Left="345" Canvas.Top="12" Height="23" Name="tb_customer" Width="120" Text="{Binding Path=Name, Mode=TwoWay}" />
    

    With this setup, changes made to the value of the textbox will automatically update the state of the object, locally. You will then have to commit the changes back to the datastore. If you are using an ORM such as Entity Framework, that’s easy- just call SubmitChanges() on your context and you’re done. If you’re not using an ORM, you’ll have to handle the update manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to simplify this question. I have a jqgrid instance which posts an
I'm developing a REST api. To simplify my question, I have an API that
To simplify my question, if I have a Makefile as below %: %.c gcc
Short question: If I have class that impelemnts FactoryBean interface, how can I get
I am currently taking a class which is incorporating a topic I have not
I have a problem interoperating between system.drawing and WPF. To simplify this question I've
I have this code snippet that I want to simplify: switch (typeString) { case
UPDATED QUESTION: Ok, I am going to simplify my question since I don't really
I've tried to simplify for the purposes of asking this question. Hopefully, this will
My question is similar to this one , but I can simplify it some.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.