History of problem
The code that is working was created in it on separated project with Visual Studio 2010. The Ajax dll was AJAX Control Toolkit — December 2013 Release. The file was downloaded from
http://www.asp.net/ajaxlibrary/act.ashx[
^]. The scriptmanager that was available from this file was ToolkitScriptManager. This code was copy over into a existing project.
History on existing problem project:
This project was updated from Visual Studio 2008 to Visual Studio 2010. The project has two AJAX Folders which or label Ajax Ver 3.5 and AJAX ver 4.0. Also, the project is using the ScriptManager and not ToolkitScriptManager. The ScriptManager is added to the MasterPage. When I copy the code from working project into the project I remove the ToolkitScriptManager which I was using in the project and used the existing project ScriptManager which is in the old application. Everything seem to be working until attempted to grab the value from the dropdownlist. The value being return were the default value and not the value being selected from the list. I am not sure if the upgrade of the application from Visual Studio 2008 and Visual Studio 2010 is the problem. I am not sure with of the Ajax folder (3.5 and 4.0) or being used.
I setup the MasterPage in the working aspx page to identical code in the master page inwhich the code is working.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Can anyone tell me why in the program that it is giving me a problem has the file asp.designer.aspx. Some of the solution have mention somethings about the AjaxControlToolKit is missing for the control within the *.aspx.designer.aspx file. Can you give me some detail on what may be needed in the *.aspx.designer.aspx. These are only simple aspx dropdown control.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I have attempt several things and the dropdown are not working properly. I created two version of the project. The sample project to test out the code is working. But, when I move the code over into a existing project the problem starts. Could there be somethings that is needed in the designer code.
The dropdown that are giving the error could I see them in the Designer of the code. Again, I think the error are coming from the dropdown. In the designer code I see protected global::System.Web.UI.WebControls.DropDownList ddlList; should it be something different because it is within the Update and Panel control.
Old additional information
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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}
Thank in advance if anyone can come up with the solution to this problem. I have attempted several things.