I have the three dropdownlist inside the update panel in my aspx page.But till it is giving the postbacks.Please help me in solving the issue.
State when working:
It work with the below ToolkitScriptManager in the ASP.NET Form that has the drop down. Also, the drop down work properly when you add the ToolkitScriptManager to the MasterPage which is associated with the form
<asp:ToolkitScriptManager ID="tsm" runat="server">
State when the problem start.
The problem start when I add the following Scriptmanager in form or MasterPage
<asp:ScriptManager ID="sm" runat="server" ScriptMode="Release" >
Line: 524
Error: Unable to get value of the property 'UI': object is null or undefined. When I am not getting that error, I can see the item that is select but can not see it in the watch. It is showing the default value which is the SelectValue of 0 and SelectItem.Text of {Select Item}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I have the grid in the updatepanel. When I select the row the popup panel show with the correct dropdown selection in the text. I do not see the correct value in the Watch window. The DropDownList show me the value of "None in the SelectedValue and {Select Day}in the SelectedItem. The actual Value of the SelectedValue should be "1" and the SelectedItem should be {Monday}. I can select any item in the list and I get the same thing of "None" in the SelectValue and {Select Day} in the SelectedItem. The "None" and {Select Day} or the first items in the list. I attempted to use the findcontrol and see the same problem of "None" and {Select Day}. The Dropdown list is load with a source file.
More Details Below:
Dropdown List is not update when added to MasterPage. My Dropdown list is with in a panel of Updatepanel. I have a grid within a updatepanel. The grid has edit link that launches a panel that has a dropdown list. I base my code on this example below:
Popup Editing/Adding/Deleting Records with GridView[
^]
Everything was working properly until the code was added to the masterpage. The scriptmanager was added to the masterpage. I attempted the solution below but still not able get the actual value on the list. When doing a watch, I see the default of index 0 and not the actual value that is showing. I can select any items in the list and it does not show in the watch.
Suggestion did not work:
If your dropdown is in the update panel then the dropdown selectedIndex will not fire until you used Update panel trigger.
<triggers>
<asp:asyncpostbacktrigger controlid="DropDownList1" eventname="SelectedIndexChanged" xmlns:asp="#unknown" />