i am trying to use ajax control toolkit (combobox) for 4 days, but i have problem in showing items of combo box, it does not show any items, please help which version i have to download.
i have used version (
April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.)
but it does not show any item in the combo box.
vesion of my visul studio is like below:
Microsoft visual studio 2008 version 9.0.30729.1 sp 2007 Microsoft Corporation
Microsoft.net Framework version 3.5 sp1 2007 Microsoft Corporation
<<pre>%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default19.aspx.cs" Inherits="Default19" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<ajaxtoolkit:ComboBox ID="ComboBox1" runat="server">
<asp:ListItem>JACK</asp:ListItem>
<asp:ListItem>MASOUD</asp:ListItem>
</ajaxtoolkit:ComboBox>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
source is like below:
<pre>
<!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><title>
Untitled Page
</title><link href="/EDMS_26-Jan-13/WebResource.axd?d=HQtSguL7DKc3Uc6tkJK-8fftx2yBtYfX6dj3mms9R-751tmAS4F3xAhWmTayOS110&t=634092630280000000" type="text/css" rel="stylesheet" /></head>
<body>
<form name="form1" method="post" action="Default19.aspx" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2OTU1MDk0MDgPZBYCAgMPZBYCAgMPZBYCZg9kFgICAQ8QZGQWABYCAgEPEGRkFgBkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQlDb21ib0JveDE9Mwi1uXydxYeyIK07+uZm3aBTmw==" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/EDMS_26-Jan-13/WebResource.axd?d=Ey2qaPViyWWrg-OxqyVq_w2&t=634244994473750000" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=UoZExHaYQ4y30agQC-88fymYpAD1poohwXaHLwySWmh9N9bYqp5zlpNcioan3X4z4ttmSL02g_gTAXaEsGj5A14XuUalLl_rW5vioIpkQss1&t=ffffffffc69c942e" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=UoZExHaYQ4y30agQC-88fymYpAD1poohwXaHLwySWmh9N9bYqp5zlpNcioan3X4zqZRTkjO55tjnrhi5xD-dpN7atzNzFlLcqy-7b0gKP-LhhDpYRxyf8YxSsdtE_S2F0&t=ffffffffc69c942e" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd2y5dkQeTo8RZays_dG1Zmz3ry7WCvqwpSOxbncOw8_36ZfwTue1-bDXB31rpSTZaYA2&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd22U4bHcY5u62Z0z22H_v7qIep6gOY6m4y-npBfmzI5FC0&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd25_VsSmtAVGgOWhPe5tas9lVFAB_gqhT_2FzrRws8UCHrJadYp5_lu1Acfo4czMZ3A2&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd20EJHU2Ii7jCIwoBMhxDF6okvV8_wcoWoTMUUclnSYoVMqsl7uuFtYTCWgBYH8fA3A2&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd20EJHU2Ii7jCIwoBMhxDF6qeIJjZaxkm-bHTTVeiLluz2gqgazeWGK6EasvDh0Mw-g2&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd2y44svB6p_N35mt0nLImI-t7cL25fn0PQqew5lt2DHE4IgmDTKoOqkaQwXYQxfB9uA2&t=36465846" type="text/javascript"></script>
<script src="/EDMS_26-Jan-13/ScriptResource.axd?d=TNXlSFTvfVEhZUENOjZd2wUiatqhK67i6QeHkHoulswhgt7u2f8NzFYvDiXFsC4a0&t=36465846" type="text/javascript"></script>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwLuormDBwKY7L2VAgKltdvdA43PTA6GBhHjU3lvESKXLmXXzivs" />
</div>
<div>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], [], 90);
//]]>
</script>
<div id="UpdatePanel1">
<div id="ComboBox1" style="display:inline;">
<table id="ComboBox1_Table" class="ajax__combobox_inputcontainer" cellspacing="0" cellpadding="0" border="0" style="border-width:0px;border-style:None;border-collapse:collapse;display:inline;position:relative;top:5px;">
<tr>
<td class="ajax__combobox_textboxcontainer"><input name="ComboBox1$TextBox" type="text" id="ComboBox1_TextBox" autocomplete="off" /></td><td class="ajax__combobox_buttoncontainer"><button id="ComboBox1_Button" type="button" style="visibility:hidden;"></button></td>
</tr>
</table><ul id="ComboBox1_OptionList" class="ajax__combobox_itemlist" style="display:none;visibility:hidden;">
<li>JACK</li><li>MASOUD</li>
</ul><input type="hidden" name="ComboBox1$HiddenField" id="ComboBox1_HiddenField" value="0" />
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.ComboBox, {"autoCompleteMode":0,"buttonControl":$get("ComboBox1_Button"),"comboTableControl":$get("ComboBox1_Table"),"dropDownStyle":1,"hiddenFieldControl":$get("ComboBox1_HiddenField"),"optionListControl":$get("ComboBox1_OptionList"),"textBoxControl":$get("ComboBox1_TextBox")}, null, null, $get("ComboBox1"));
});
//]]>
</script>
</form>
</body>
</html>