Hi.
I was following the tutorial http://www.asp.net/ajaxlibrary/act_AutoComplete_Simple.ashx, which requires the use of the Ajax Control Toolkit, and when arrived at step 4 (Add AutoComplete Page Method), an unexpected exception has been raised (in attachments or with that link : http://www.hostingpics.net/viewer.php?id=661255UnexpectedException.png).
Is there a problem relative to the toolkit, or is there a step I did wrong in the tutorial ?
Please, help me.
Comments: What version of visual studio are you using? I just tried to replicate your issues by doing the following. Note I am using visual studio 2012 and windows 8 1) Downloaded current ajax control toolkit version 4.1.7.123 2) Opened up the sample site included in the download AjaxControlToolkitSampleSite 3) Went to the AutoComplete directory and created a new web form page Default.aspx 4) Went to Toolbox and added a new Tab and named it "Ajax Control Toolkit" and then right clicked on it and selected Choose Items. Navigated to location I extracted the download to and selected AjaxControlToolkit.dll which added the toolkit items to my toolbox 5) Dragged to my blank page the ToolkitScriptManager 6) Dragged to my page a TextBox 7) Clicked on my textbox and selected the arrow at the top right 8) Clicked "Add Extender" 9) Selected AutoComplete 9) Left the Specify an ID for extender to the suggested value of TextBox1_AutoCompleteExtender and clicked OK 10) Clicked "Add AutoComplete page method" The following method was added to my Default.aspx.cs [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string[] GetCompletionList(string prefixText, int count, string contextKey) { return default(string[]); } Perhaps you have some different environment that I can try and replicate this under ?
I was following the tutorial http://www.asp.net/ajaxlibrary/act_AutoComplete_Simple.ashx, which requires the use of the Ajax Control Toolkit, and when arrived at step 4 (Add AutoComplete Page Method), an unexpected exception has been raised (in attachments or with that link : http://www.hostingpics.net/viewer.php?id=661255UnexpectedException.png).
Is there a problem relative to the toolkit, or is there a step I did wrong in the tutorial ?
Please, help me.
Comments: What version of visual studio are you using? I just tried to replicate your issues by doing the following. Note I am using visual studio 2012 and windows 8 1) Downloaded current ajax control toolkit version 4.1.7.123 2) Opened up the sample site included in the download AjaxControlToolkitSampleSite 3) Went to the AutoComplete directory and created a new web form page Default.aspx 4) Went to Toolbox and added a new Tab and named it "Ajax Control Toolkit" and then right clicked on it and selected Choose Items. Navigated to location I extracted the download to and selected AjaxControlToolkit.dll which added the toolkit items to my toolbox 5) Dragged to my blank page the ToolkitScriptManager 6) Dragged to my page a TextBox 7) Clicked on my textbox and selected the arrow at the top right 8) Clicked "Add Extender" 9) Selected AutoComplete 9) Left the Specify an ID for extender to the suggested value of TextBox1_AutoCompleteExtender and clicked OK 10) Clicked "Add AutoComplete page method" The following method was added to my Default.aspx.cs [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string[] GetCompletionList(string prefixText, int count, string contextKey) { return default(string[]); } Perhaps you have some different environment that I can try and replicate this under ?