Hi,
When the page loads the WebDropDown is populated with a dataset which is then set to nothing.
When I select a value in the table in the dropdown I populate other textfields based on the values read from the selection in the table in the dropdown.
After that page is posted back, the values in the table in the webdropdown are no longer visible but when selected the values from the selected item do populate the textfields correctly.
It seems that the data is not visible but is there to select from.
Does anyone have any suggestions, I have pretty much exhausted my options?
Thanks!
If you are using <ItemTemplate> you will have to rebind (call DataBind() on the control), after every postback. Data Items are not stored into ViewState , therefore your DataBinding expressions will not evaluate any data.
Thanks,
Angel
I am not using <Item Template> at this point and when I add the line of code wddRecipients.DataBind() at the very end of Page_Load just before the End Sub, I get the following error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.] Veritext.VIP21.Web.SendNotices.RecipientChanged() +119 Veritext.VIP21.Web.SendNotices.wddRecipients_ValueChanged(Object sender, DropDownValueChangedEventArgs e) +70 Infragistics.Web.UI.ListControls.WebDropDown.OnValueChanged(DropDownValueChangedEventArgs e) +115 Infragistics.Web.UI.ListControls.DropDownBot.RaisePostDataChangedEvent() +2035 Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() +213 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() +34 System.Web.UI.Page.RaiseChangedEvents() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485