Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TwoWay binding and changing the data.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00886503
Message ID:
00887150
Vues:
15
Thanks. I was only having the register in the initial page load. Thanks for the heads up.

__Stephen

>Stephen,
>
>>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.
>
>I think if you answer question 1, you'll find the answer to question 2. First of all, you might try registering the business object in the Load of the form (if you're not already doing so). As the MM .NET Dev Guide says:
>
>"Note: You must always register a business object in the Page_Load of an MM .NET Web Form. This ensures the business object is registered before any user interface controls instantiate."
>
>Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform