Ask a questionAsk a question
 

QuestionInotifyPropertychanged and implemnting custom logic

  • Monday, October 12, 2009 5:54 PMlee d Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I have a situation where I would like to do some calculation  when a property changes(similar to qantity of a product changing  and Total has to be updated).
    what is the best way to do this.  where would the code be executed?

    Thanks


    http://leeontech.wordpress.com/

All Replies

  • Monday, October 12, 2009 6:41 PMShayne Burgess - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Could you tell me more about your scenario?

    1. Do you want to do the calculation client side or server side?
    2. Are you using the Add Service Reference to create the client proxy?
    3. Have you tried subscribing to the OnPropertyChanging events that are generated as part of the client side types during Add Service Reference?

    Shayne
  • Monday, October 12, 2009 7:01 PMlee d Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, thanks for the reponse
    1. there are some calculations that I want on server side and some on client side, could you tell me how to go about doing in both cases
    2. yes, I want to use Add service reference, how to go to about doing the same without adding reference?
    3. I did not try anything yet. wanted to make sure I understand the options and ways about doing the same

    lee
    http://leeontech.wordpress.com/
  • Tuesday, October 13, 2009 2:17 PMlee d Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any thoughts?
    http://leeontech.wordpress.com/