Last post Aug 15, 2013 11:12 PM by chetan.sarode
Aug 13, 2013 06:44 AM|Vishal Ranjan|LINK
I have this scenario:
I have a web application which was earlier on .net 2.0 Framework. But due to the hosting server configuration I moved my project to .net 4.0.. Still no problem. The only wrong thing which happens till now was that my autocomplete extender stopped showing
in the design part. It was functionally perfect as It was working as usual.
So I thought it might be some problem due to the old ajax version[I was using ajax 1.0.xx earlier]. So i downloaded the latest ajax toolkit binary file from codeplex [4.1.xxx] and referenced it to my new 4.0 project.. I added the new controls on my toolkit..
The earlier version was using cc1 in its register directive in the page but the new version was using asp. So i replaced the older directive to new one.. Next I added the autocomplete extender from toolkit.. But to my surprise It was also not getting showed
in the design part.
Even if you click on the control from the toolkit or drag it from toolkit it was not getting shown on the page. SO i added the autocomplete extender manually in the page.. But It was not showing in the design part. So I tried to remove some attributes. If
I remove the targetcontrolid attribute It was showing in the page otherwise It wont..
Next I continued with the new control which was not getting shown in the design part in the hope that It will work on the running mode..
So Finally I gave up and again referenced the old ajax version 1.0.xxx in my project which is not showing in the design part but atleast working..
Please tell how to rectify these problems.. Thanks
Aug 14, 2013 06:54 AM|Fuxiang Zhang - MSFT|LINK
After browsing the description you provided, I get that you upgrade the version of ajaxControlToolkit to
Latest version. However it doesn’t works fine anymore.
For the issue, I’d like to suggest you do the correct steps to upgrade ajaxControlToolkit version.
And you also should make sure the control ScriptManager is the latest version. Please refer below link
Hope it helps, thanks.
Aug 15, 2013 02:43 AM|webcodeexpert|LINK
I suggest you to read the below article to resolve your problem. Both are tested and working examples
Ajax AutoCompleteExtender control example in asp.net using C#,VB.Net without using web service
Ajax AutoCompleteExtender control example in asp.net C#,VB.Net using web service
Aug 15, 2013 02:51 AM|nandankesh|LINK
<asp:TextBox ID="txtSearchID" runat="server" Width="180px" AutoPostBack="True" OnTextChanged="txtSearchID_TextChanged"></asp:TextBox>
<cc1:AutoCompleteExtender ID="txtSearchID_AutoCompleteExtender" runat="server" DelimiterCharacters=""
Enabled="True" ServiceMethod="GetID" ServicePath="Search/NameSearch.asmx" TargetControlID="txtSearchID"
MinimumPrefixLength="1" OnClientShown="resetPosition" CompletionListCssClass="autocomplete_completionListElement"
<%@ WebService Language="C#" CodeBehind="~/App_Code/NameSearch.cs" class="NameSearch" %>
public string GetID(string prefixText)
List<string> listString = new List<string>();
using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["NewLandConnectionString"].ConnectionString))
int passValue = 1;
bool isNumber = int.TryParse(prefixText, out passValue);
cm = new SqlCommand("SELECT top 10 * FROM dbo.CONCATINATEPATIENTID WHERE ID like '" + prefixText + "%' and ISACTIVE=1", con);
cm = new SqlCommand("SELECT top 10 * FROM dbo.CONCATINATEPATIENTID WHERE Expr1 like '" + prefixText + "%' and ISACTIVE=1", con);
SqlDataAdapter da = new SqlDataAdapter(cm);
DataTable dt = new DataTable();
foreach(DataRow dr in dt.Rows)
string str = listString.ToArray();
Aug 15, 2013 11:12 PM|chetan.sarode|LINK
Refer this -