AutoCompleteExtender Not Working For WebService

Sep 3, 2010

I have a web service file in my project having a web method which is used for AutoCompleteExtender and which works fine when I debug it from VS. But when I publish and host it on IIS, it's not working properly. However, I tested the webservice method directly by typing the URL and it gave the desired output. Is their a special setting needs to be done in IIS to make it working or any property of AutoCompleteExtender need to be set?

View 3 Replies


Similar Messages:

AJAX :: AutoCompleteExtender Not Working With WebService?

Feb 24, 2011

I have a textbox with the autocompleteextender in VS2010 that is referencing a webservice. However, nothing I seem to do makes this work as no values are returned when I begin typing in the textbox. When I view the webservice in my browser and invoke it, it returns values so I know that my webservice works. Code below.

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:TextBox ID="Task1" runat="server" CssClass="CENTER" Width="160px"></asp:TextBox>

[code]...

View 1 Replies

AJAX :: Dynamically Created AutoCompleteExtender Webservice Not Firing

Jan 6, 2011

I'm Creating some textboxes with autocompleteextenders attached to them dynamically at runtime however, I'm having some trouble getting them to fire.

When I create the textboxes with autocompleteextenders at design time, they work fine.

Here's the method that creates them both:

[Code]....

The txtID parameter is basically a name with a number appended to it, IE: txtBox_0,txtBox_1

The svcMethod parameter is of course the respective service to call (there are 2 different services.)

View 5 Replies

AJAX :: AutoCompleteExtender Both Working And Not Working?

Sep 9, 2010

[Code]....

In the upper code... AutCompleteExtender1 works perfectly... AutoCompleteExtender2 not working at all. Same web service, same method... both are inside the same .aspx file... both have exactly the same conditions.What is it that I am missing? And if you think that it is because they both calling the same service and method it is not... the second doesn't work with different service or different method (both inside the same service and in the different .asmx file).Can it be, that you simply can't have 2 ACE controls on the same page?And btw, is it possible to run server code once someone selects something from ACE control?

View 8 Replies

AutoCompleteExtender Not Working?

Jun 25, 2010

following is the code i am using and it is not working.

<asp:TextBox ID="txtWarrantNumber" runat="server"></asp:TextBox>
<AjaxCtrl:AutoCompleteExtender ID="acWarrantNumber" runat="server" TargetControlID="txtWarrantNumber"
ServiceMethod="GetWarrantNumber" ShowOnlyCurrentWordInCompletionListItem="true"
CompletionInterval="100" EnableCaching="true" MinimumPrefixLength="1" CompletionSetCount="4">
</AjaxCtrl:AutoCompleteExtender>
</ContentTemplate>
</asp:UpdatePanel>
</PopupTemplate>
Public Shared Function GetWarrantNumber(ByVal prefixText As String, ByVal count As Integer) As String()
Dim warrantNumbers() As String = {"ankit", "sachin", "ankrrr", "ankppp"}
Return warrantNumbers
End Function

View 1 Replies

AJAX :: AutoCompleteExtender Is Not Working?

Nov 16, 2010

i have used fallowing code

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="TextBox1"
MinimumPrefixLength="1" ServiceMethod="GetNameInfo" ServicePath="WebService.asmx">
</cc1:AutoCompleteExtender>........

View 1 Replies

AJAX :: AutocompleteExtender Not Working From IIS?

May 24, 2010

I am using AjaxAutoCompleteExtender in my asp.net program (C#) . I am applying the extender to a texbox and using internal Web Service. I am getting the desired result, when i am running from the development environment. After Publishing the site to IIS, I am not getting the list and not showing any errors. I have turned off custom errors. My website is not an Ajax Enabled WebSite. So i added the lines into my Web.Config.I tried all service path.. http://localhost/Test/ WebService.asmxhttp://192.109.1.8/Test/WebService.asmxand i tried ~/Test/WebService.aspxWhile testing from the development environment, i am using the last one.I am not sure whether this is the problem with the service path or any permission issue.

View 3 Replies

AjaxControlToolkit - Can't Get AutoCompleteExtender Working

Jan 28, 2011

I can't get the AutoCompleteExtender working. It's probably something trivial. Using .NET 4 default ASP.NET project in VS2010.

Code:

<asp:TextBox runat="server" ID="example" autocomplete="off" />
<ajaxToolkit:AutoCompleteExtender
ID="autocomplete"
runat="server"
TargetControlID="example"
ServicePath="~/services/AutoComplete.asmx"
ServiceMethod="GetCompletionList"
CompletionInterval="1" />

The web service works - the code is copied practically verbatim from the AJAX Control Toolkit samples. This is really frustrating me. I have looked at other questions on here and not found a solution yet.

I don't get any errors or exceptions. Typing in the text box doesn't do anything, the web service doesn't hit the break point.

View 3 Replies

AJAX :: AutoCompleteExtender Control Not Working

Feb 15, 2010

I tested the web service.it is working fine.The problem that i want to solve is to make call to webservice. Here is the .aspx code

<asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
TargetControlID="txtFullName" ServiceMethod="FindFullName"
ServicePath="../WebService.asmx" EnableCaching="true"></ajaxToolkit:AutoCompleteExtender>
Webservice code :
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "[URL]/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService {
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
[WebMethod]
public string[] FindFullName(string prefixText)
{
string sql = "Select FName from Investigators Where FName like @prefixText";
SqlDataAdapter da = new SqlDataAdapter(sql,"Data Source=vvvvv;Initial Catalog=vyyyd;Persist Security Info=True;User ID=PowetttrUsyyer;Password=888888);
da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText+ "%";
DataTable dt = new DataTable();
da.Fill(dt);
List<string> liste = new List<string>();
foreach (DataRow dr in dt.Rows)
{
liste.Add(dr.ItemArray[0].ToString());
}
return liste.ToArray();
}
}

View 10 Replies

Web Forms :: Autocompleteextender Not Working In HTTPS

Aug 11, 2010

I have ajax autocompleteextender and it is working fine with our test enviornment where we dont have secured HTTP. But while moving the code to Qa, which runs on HTTPS, AutoCompleteExtender stops working. I debugged and see control is going to webservice but unable to fetch data or call database from webservice.

View 1 Replies

AJAX :: AutoCompleteExtender Animations Not Working In IE?

Nov 24, 2010

I am trying to animate AJAX AutoCompleteExtender. It works perfect in all of the browsers other then IE. I get the following error,

Webpage error details

Message: Invalid argument.
Line: 2140
Char: 17
Code: 0
URI: http://localhost/ScriptResource.axd?d=NwDIAxd3d5P9y3NaXF_9DpoTdFVPLX7nvpHgz9k2UbuTIJMahchcjYsB7QgyJBNEN5AwkHSQX9XtraYWzftAj-QWl2x-HjKgpZLOK4_8BpH2e5QNTHyidi5dli30apg7ykR9H4_YOOv3l7baGLbxJ1A5Nfw1&t=4c551fe5

[Code]....

View 1 Replies

AJAX :: AutoCompleteExtender Not Working With Lots Of Data

Jan 17, 2011

I got the auto complete extender working with the database, but will show the autocomplete only if the data is less than around 500 records.... anything above that, and the exntender will not show at all.... Does the auto complete extnder have a limit on the number of records?.

View 1 Replies

AJAX :: Autocompleteextender Not Working On Deployment Server?

Jul 27, 2010

i have an asp.net application in which i have used autocomplete extender now when i deploy it on the server (2003 and iis 6) the autocomplete extender does not work .. i looked on the net and found out the system.web.extensions system.web.extensions.design dll are needed for it, it was not present so i added them to the gac still it is not working i have .net3.5 sp1 instaled on the server.

View 3 Replies

AJAX :: AutoCompleteExtender Not Working With WebMethod And No Web Service

Jul 18, 2012

I tried your code for Autocomplete without Webservice and didn't work on my page. When I tried it on a new project it works fine but on my project it does not. I have other controls on the page but that shouldn't stop it from working right?

Attached is my code

<%@ Page Title="" Language="VB" MasterPageFile="~/intranet.master" AutoEventWireup="false" CodeFile="warehouse.aspx.vb" Inherits="warehouse" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

[CODE]...

View 1 Replies

AJAX :: AutoCompleteExtender Not Working Inside UserControl?

Jun 16, 2015

ajax AutoCompleteExtender not working in user control (.ascx) but when use directly on aspx page its working perfectly.

<asp:TextBox ID="txtSearchProject" runat="server" CssClass="input col-lg-4" type="text" placeholder="Type Location or Project/Society or Keyword"></asp:TextBox>
<cc1:AutoCompleteExtender ID = "Act_SearchProject" runat = "server" TargetControlID = "txtSearchProject" MinimumPrefixLength="1" EnableCaching="true" CompletionSetCount="1" CompletionInterval="100" ServiceMethod="GetLocality_Project" >

[Code].....

View 1 Replies

AJAX :: Autocompleteextender Not Working Inside User Control

Jan 19, 2011

Autocompleteextender not working inside an user control tried all ways. i have a custom function.. inside the cs file itself like the following :-

[Code]....

I did something like this and it worked properly when it was in aspx but when i changed all this to ascx and when i added the user control in aspx the autocomplete is not working. say enablecontext = false; i have even tried that.. its not even reaching till that function. moreover i need contextkey to validate different autocomplete controls inside my page.

View 2 Replies

AJAX :: AutoCompleteExtender Not Working - Flashing Javascript Error

Apr 20, 2010

I have one web application which is accessible via to different IP addresses (one of them is virtual) now the application is running smoothly when accessed via the original ip address but when the same application(website) is accessed via the virtual ip address the autocomplete extender is not working it is flashing a javascript error 'Stop running the script? A script on this page is causing internet explorer to run slowly

View 2 Replies

AJAX :: AutoCOmpleteExtender Stopped Working When Added Parameters

Jul 18, 2010

I have added autocompleteextender in page . It was working without parameters , when i have added parameters "pretext","count" it stops working. below are my code :

<div>
<asp:ToolkitScriptManager
ID="ToolkitScriptManager1"
runat="server">
<Services>
<asp:ServiceReference
Path="~/Admin/WebService1.asmx"
/>
</Services>
</asp:ToolkitScriptManager>
<asp:TextBox
ID="TextboxCompletelist"
runat="server"></asp:TextBox>
<asp:AutoCompleteExtender
ID="TextboxCompletelist_AutoCompleteExtender"
runat="server"
ServiceMethod="GetCompletionList"
Enabled="True"
ServicePath="~/Admin/WebService1.asmx"
TargetControlID="TextboxCompletelist"
CompletionSetCount="10">
</asp:AutoCompleteExtender>
</div>
namespace AgentService
[WebService(Namespace = [URL]
[WebServiceBinding(ConformsTo =
WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public
class
WebService1 : System.Web.Services.WebService
{
[WebMethod]
public
static
string[] GetCompletionList(string PrefixText,
int count)
{
string countryname;
SqlParameter[] parm =
new
SqlParameter[1];
parm[0] = new SqlParameter("@PrefixText",
PrefixText);
DataTable dt =
SqlHelper.ExecuteDataset(AppSetting.ActivateConnection,
CommandType.StoredProcedure,
"FetchAutoCompleteStates",parm).Tables[0];
List<string> items =
new
List<string>();
for (int i = 0; i <= dt.Rows.Count-1; i++)
{
countryname = dt.Rows[i]["statename"].ToString();
items.Add(countryname);
}
return items.ToArray();
}

View 2 Replies

How To Get WebService Working

Nov 19, 2010

I am trying to setup a Spring.net web-service but keep getting an error message that I cannot figure out.

Error:
System.NotSupportedException: Target 'target' of type
'Spring.Objects.Factory.Support.RootWebObjectDefinition' does not support methods of 'StudentRegistration.Services.IBoundaryService'.
at Spring.Util.AssertUtils.Understands(Object target, String targetName, Type requiredType)
at HelloWorldExporter.GetAllBounds()

Code:
public interface IBoundaryService {
XmlDocument GetAllBounds(); }
public class BoundaryService :IBoundaryService {
public virtual IBoundaryDao BoundaryDao { get; set; }
public virtual XmlDocument GetAllBounds() {
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml("<test>ok</test>"); return xmlDoc; } }

Configuration:
<object name="BoundaryService" type="StudentRegistration.Services.BoundaryService, StudentRegistration" abstract="true"> </object>
<object id="BoundaryExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
<property name="TargetName" value="BoundaryService"/>
<property name="Namespace" value="http://fake/services"/>
<property name="Description" value="something"/>
<property name="MemberAttributes"> <dictionary> <entry key="GetAllBounds">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="something."/>
<property name="MessageName" value="GetAllBounds"/>
</object> </entry> </dictionary> </property> </object>

What should I try to clear this up?

View 1 Replies

Webservice Not Working?

Dec 1, 2010

i have declared an int variable; something like that:

int ret = ws.GetVersion();

the webservice correctly load the value and return to the client, however in the client if i select ret and hit shift+f9 it say that ret doesnt exist in that context.but if that would be the case i would get a compiler error,

View 2 Replies

JQuery Autocomplete Not Working With Webservice?

Mar 24, 2011

I have this code:

$('#' + textboxID).autocomplete({ delay: delay, source: ["cats", "dogs"] });
which works fine.
I want to use a webservice:
$('#' + textboxID).autocomplete({ delay: delay, source: webserviceURL});
This doesn't work. My webservice URL is /blah/blah.asmx/myMethod
The webservice definition is:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<string> myMethod(string term)
{
// Logic here, return list of strings
}

The method never gets called. Can anyone point me in the right direction? I have other webservices in the same .asmx which work fine with other controls (other controls are using $.ajax to call them).

Edit: Getting closer, I now get a 500 error saying Request format is unrecognized for URL unexpectedly ending in '/myMethod'. I think it's not treating my url quite right..

View 2 Replies

Scriptable WebService Not Working CrossDomain

Nov 25, 2010

I am using this clientaccesspolicy.xml file

<?xml version="1.0" encoding="utf-8"?> <access-policy>
<cross-domain-access> <policy> <allow-from http-request-headers="SOAPAction">
<domain uri="*"/> </allow-from> <grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to> </policy> </cross-domain-access> </access-policy>

And trying to access webservice using javascript in my subdomain, but its not working in FF, working fine in IE. I have also tried using crossdomain.xml file which too works fine in IE, but not in FF.

View 1 Replies

AJAX :: Autocomlete And Webservice Not Working?

Nov 8, 2010

I canīt get it working , Is there anything wrong with the code?

I tested the web service and itīs working fine, but when i run it. it doesnīt pop up.

here is the webservice :


[Code]....

and here is the webForm:

[Code]....

View 8 Replies

AJAX :: Autocompleteextender Not Working With Master Page Using Page Method?

Jan 20, 2010

i have tried autocompleteextender using page method and without master page and its working. but now im try to put them into master and its not working. this is my code***********pagename.ascx

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="C_TestAutoComplete2.ascx.vb" Inherits="C_TestAutoComplete2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

[code]...

View 1 Replies

Paging Not Working With ListView And WebService Using Linq

Dec 20, 2010

I have a simple page that looks up contacts using a webservice with a single method written in Linq. On the page, I have both a gridview and a listview with a DataPager to compare the two. I can get paging working just fine with the gridview, but the Linq code has to return all of the data on each call and let the web page pick out only a page's worth... not the best solution. I have been told that a ListView will solve this problem, but all the examples I have been able to find have the Linq code on the web page instead of in a separate layer (e.g. a webservice). Ideally, I should be able to tell the web service to bring back a specific page worth of data (starting record number and number of rows), but how do I get the ListView (or the DataPager) to fire an event that asks for this data?

Here is the ASPX code:
<asp:ListView ID="listPersons" runat="server"> <LayoutTemplate>
<table> <thread> <tr> <th> Site ID </th> <th> PersonID </th>
<th> Person Name </th> </thead> <tbody>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" /> </tbody> </table>
<asp:DataPager ID="Pager1" runat="server" PagedControlID="listPersons" PageSize="5" > <Fields>
<asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true" ShowNextPageButton="false" ShowLastPageButton="false" /> <asp:NumericPagerField />
<asp:NextPreviousPagerField ShowFirstPageButton="false" ShowPreviousPageButton="false" ShowNextPageButton="true" ShowLastPageButton="true" />
</Fields> </asp:DataPager> </LayoutTemplate> <ItemTemplate><tr> <td> <%# Eval("SiteID") %>
</td> <td> <%# Eval("PersonID") %> </td> <td> <%# Eval("PersonName") %> </td>
</tr> </ItemTemplate> <EmptyDataTemplate> No data found... </EmptyDataTemplate> </asp:ListView>

Here's the code behind:
private void DoList(string Match) {
ContactsService cs = new ContactsService();
listPersons.DataSource = cs.Find(Match, 100 ); listPersons.DataBind(); }
and the web serivice:
[WebMethod]
public List<Person>Find(string Match, int Count) { if (Count < 5) Count = 5;
using (DataLayer.ContactsDataContext context = new ContactsDataContext()) {
var Persons = from p in context.Persons where p.PersonName.Contains(Match)
orderby p.LastName, p.FirstName select new Person() {
SiteID = p.SiteID, PersonID = p.PersonID, PersonName = p.PersonName, };
return Persons.Take(Count).ToList(); } }

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved