Linq to SQL SubmitChanges() not working if textbox modified by listbox -


in simple test form, have listbox , textbox. form bound datacontext, has single table. listbox has 2 items, , not bound. textbox bound datacontext.

when select item listbox, following code runs:

txttest.text = lsttest.selecteditems(0).tostring 

then when push save button, following code runs:

me.textdc.submitchanges() 

but - database field textbox bound not updated.

if manually type in value textbox , push save button, database field updated.

i've been trying solve on , off several days, , made simple text form confirm or deny happening. no errors occur.

so, reason submitchanges() not recognize textbox needs updated if it's .text property has been updated listbox, recognize needs updated if manually type in value.

any thoughts?

solved! somehow, don't know how exactly, connection string sql server in dbml file , connection string in application settings file different. made absolutely sure both pointing same sql server database, , works correctly now.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -