Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating data
Message
From
28/05/2004 09:35:00
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Updating data
Miscellaneous
Thread ID:
00908123
Message ID:
00908123
Views:
53
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
Map
View

Click here to load this message in the networking platform