c# - textBox is not assigning values to my properties -


i have textbox , combobox in code, write data on them, , idea keep data in properties classes initialized.

combobox works fine, , data sent database withh no problem, textbox no :(

i show part of code

        ctlcrpvhcprs.clvcrp = convert.toint32(combobox4.selectedvalue);         ctlcrpvhcprs.clvvhc = convert.toint32(combobox1.selectedvalue);         ctlcrpvhcprs.clvprs = convert.toint32(combobox2.selectedvalue);         ctlcrpvhcprs.clvmnc = convert.toint32(combobox3.selectedvalue);         ctlcrpvhcprs.rgnzna = textbox2.text;         ctlcrpvhcprs.clvzna = textbox3.text;         ctlcrpvhcprs.clvsct = textbox4.text;         ctlcrpvhcprs.estvhc = textbox5.text; 

if debug code, when reach textbox3, example, check value textbox2.text , "somedata", , ctlcrpvhcprs.rgnzna ""

ideas, please?

i need more detail of code. try these ways:

ctlcrpvhcprs.rgnzna = textbox2.text.tostring();  //or  string str=textbox2.text; ctlcrpvhcprs.rgnzna = str; 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -