Placing a combobox inside a page that contains a ToolkitScriptManager and UpdatePanel causes a Javascript error as follows on an Ajax postback:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Version of AjaxControlToolKit.DLL: 4.1.40412.2
ASP.Net PAge Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ComboTest.aspx.vb" Inherits="Admin_ComboTest" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ComboBox ID="ddlecountry" runat="server" AutoCompleteMode="SuggestAppend"
MaxLength="0" style="display: inline;" Width="200px">
<asp:ListItem Selected="True" Value="0"><Select></asp:ListItem>
<asp:ListItem Value="1">Country A</asp:ListItem>
<asp:ListItem Value="2">Country B</asp:ListItem>
</asp:ComboBox>
<asp:Button ID="cmdrefresh" runat="server" Text="Refresh" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
VB.Net Page:
Partial Class Admin_ComboTest
Inherits System.Web.UI.Page
Protected Sub cmdRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdrefresh.Click
Response.Write("It Worked.")
End Sub
End Class
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Version of AjaxControlToolKit.DLL: 4.1.40412.2
ASP.Net PAge Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ComboTest.aspx.vb" Inherits="Admin_ComboTest" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ComboBox ID="ddlecountry" runat="server" AutoCompleteMode="SuggestAppend"
MaxLength="0" style="display: inline;" Width="200px">
<asp:ListItem Selected="True" Value="0"><Select></asp:ListItem>
<asp:ListItem Value="1">Country A</asp:ListItem>
<asp:ListItem Value="2">Country B</asp:ListItem>
</asp:ComboBox>
<asp:Button ID="cmdrefresh" runat="server" Text="Refresh" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
VB.Net Page:
Partial Class Admin_ComboTest
Inherits System.Web.UI.Page
Protected Sub cmdRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdrefresh.Click
Response.Write("It Worked.")
End Sub
End Class
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.