Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TwoWay binding and changing the data.
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
TwoWay binding and changing the data.
Miscellaneous
Thread ID:
00886503
Message ID:
00886503
Views:
51
I have a textbox set up on a form with TwoWay binding. Form loads and data is changeable in the default load of data.

I have a dropdown to change the data on the form. This is the code that must run to SHOW the new data in the textbox.

SAED oSAED = (SAED)this.RegisterBizObj(new SAED());
string lcID = this.MmDropDownList1.SelectedValue.ToString(); //KEY
DataSet dsSAED = oSAED.GetSAE(lcID);
this.MmTextBox1.Text = dsSAED.Tables[0].Rows[0][2].ToString();
this.MmTextBox2.Text = dsSAED.Tables[0].Rows[0][1].ToString();
Session["dsSAED"] = dsSAED;

When this code executes the user CANNOT change the text in the MmTextBox1 or 2 without deleting some or all of the text that is now visible.

I am querious why I :
1) Need to set the .Text for either of these controls in new data but it works for first pull?
2) Why user can't edit (type anything in the control) on the refresh.
Next
Reply
Map
View

Click here to load this message in the networking platform