My web form accesses a FoxPro back end....
I can't get my updated textbox values to save to my datarow. My form has a textbox, "txtbo_delqty" inside a panel, "pnlAdd". I changed the delivered quantity in "txtbo_delqty" from 50 to 60. Then I click my Save button, "cmdSave", where I call a method, "AddRowSave". In this method, I have code that updates the new datarow with the current values of the textboxes. I break on line dr["bo_delqty"] = this.txtbo_delqty.Text as shown below. Even though I have entered a new value of 60 into this textbox, I still see the txtbo_delqty.Text equal to 50. Why doesn't this line pull the new value of 60 here? I also tried to pull the new value in the txtbo_delqty.TextChanged event and that didn't work either. What am I missing?
DataTable dtDetail = (DataTable) dsDetail.Tables["bp_bidod"];
DataRow dr = dsDetail.Tables["bp_bidod"].NewRow();
//BP_BIDOD fields
if (this.txtbo_delqty.Text.ToString() == "" || this.txtbo_delqty.Text.ToString()==
null)
{
dr["bo_delqty"] = 0;
}
else
{
dr["bo_delqty"] = this.txtbo_delqty.Text;
}
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only