AJAX :: How To Pass More Than One Control Values To Webmethod For AutoCompleteExtender

Apr 5, 2010

I am developing a user control. This user control is having 2 Dropdown controls and one textbox('txtCustomer'). I am using autocompleteextender for the text box. This 'txtCustomer' control populates the data based on the value selected in 2 dropdowns.

I need to pass the selected value of this 2 dropdown to my meb method. I am not using web service(.asmx page) for this application instead i am using page level web method. I tried to access the controls from the web method inside the Page. but all the identifiers and controls of the page returning null in the web mothod. I have analysed it is because the events "page_Load and page_Init" are not getting fired.

View 6 Replies


Similar Messages:

AJAX :: AutoCompleteExtender Not Calling WebMethod

Sep 10, 2010

[Code]....
[Code]....

View 3 Replies

AJAX :: Toolkit:AutoCompleteExtender Return From Webmethod ?

May 7, 2010

i have used AjaxToolkit:AutoCompleteExtender, which calls a web method to get string array. Everything was working fine as its populating all the data.But the issue arise when web method is returning value in a string array like

arr[0]=1-12-100

arr[1]=1-10-100

the value im getting in the AutoCompleteExtender is the subtract of the result like

arr[0]=-111

arr[1]=-109

Why is it treating it like numeric and doing calculation when the return type is actual an string. i think its has to do sth with serialize and deserialize thing

View 1 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 Work In UpdatePanel - Webmethod Don't Fired?

Apr 21, 2010

I have some problem with the AutoCompleteExtender when it's include in an UpdatePanel.

Scenario:

I have create a UserControl with TextBox, AutoCompleteExtender and a "Save" LinkButton and I put this Control in the InsertItemTemplate of a ListView.

The AutoComplete uses a Method that I have created in a webservice.

All works fine untill i place my ListView in an UpdatePanel.

The webmethod don't fired. The strange thing is that if i put the same Control also out of my ListView it seems to work, but i can't catch the linkbutton click.

View 2 Replies

AJAX :: How To Pass Dropdownlist Vaule Use Context Key In AutoCompleteExtender

Jan 18, 2011

in my website am using AutocompleteExtender control using webservices,in my webiste dropdownlist is there in that dropdown list user select one version like FIX.4.0,FIX.4.1, in that what are information are there are displayed in autocomplete numbers but webservices are working but the in my application is not fireing that webservie check this one correct are not in source

[Code]....

write my dropdownlist like that

[Code]....

View 3 Replies

AJAX :: Pass Additional Parameters To AutoCompleteExtender's ServiceMethod?

Dec 29, 2010

How to pass addtional parameters to AutoCompleteExtender's ServiceMethod.I am trying to create common web service method for all the autocomplete textboxes in my web apps.

I want to pass the source table name,the key to be retrived, and any filtring criteria to the web method.

View 4 Replies

AJAX :: Pass Some More Parameters In WebMethod While Using Cascading DropDown Extender?

Jul 28, 2010

I am using AJAX Cascading dropdown extender,and i have made a running dummy example.Using web service second dropdown is filled based on the selection of first drop down. But actual query that should fill second drop down have some more constraints in 'where' clause of the sql query, and that's value is too dynamic that (i cannot assume its value to be static). So i need that that variable's value in my web method too.

View 2 Replies

Data Controls :: Pass Context Key To AJAX AutoCompleteExtender In GridView / DataList

May 7, 2015

My Country dropdownlist and City Textbox is in datalist control , now i want to make my CityTextBox autocomplete where con_id = country dropdown selected value .

<asp:DataList runat="server" ID="myDataList" OnItemDataBound="myDataList_OnItemDataBound" RepeatLayout="Flow" RepeatDirection="Horizontal">
<ItemTemplate>
<label class="control-label">
City / Suburb

[Code] ....

View 1 Replies

AJAX :: Pass Context Key To AutoCompleteExtender In GridView / DataList Inside UpdatePanel

May 7, 2015

[URL] .... This is my older post on this question .

Now my datalist is under update panel hence on changing dropdownlist my textbox for city won't cascade. How can I update the context key on dropdownlist selection change ?

View 1 Replies

AJAX :: How To Return Multiple Values From WebMethod To JQuery

May 7, 2015

i want to return multiple(name and statusid) parameter from web method and want to retrive in javascript function how to use it. 

I have attached my code. 

[System.Web.Services.WebMethod]
public static string CheckPromotionCode(Int32 id)
{
string name="kausha";
string statusId = "6";

[CODE]...

View 1 Replies

Data Controls :: Pass JSON Data Object From JQuery AJAX To WebMethod

May 7, 2015

I want to send single json object with nested arrays through jquery ajax method.

In Code

In jquery ajax i am passing LeaveRuleMaster a single json object which holds some properties (Leavetypeid, Leavename, Leavestatus and nested array LeaveRulespecific.

In vb.net code i can receive the value of properties(Leavetypeid,Leavename,Leavestatus)

but i am receiving the LeaveRuleSpecific as nothing.

Based on the following link i tried this [URL] .....

View 1 Replies

AJAX :: ASPX WebMethod Not Running The WebService Webmethod Returning The Page?

May 19, 2010

I have a service that works great on my development box. It uses JQuery to hit my web service, and then the JSON results are sent back.

The web service is located on our basePage.cs. We didn't want to put out an external WebService for this. Our on beta box something different is happening.

The web page seems to be trying to call the web method correctly - the JSON data is being sent... but the server doesn't seem to know it's a webmethod. here's my service function (it's in our basepage.cs which inherits from Page).

[Code]....

View 2 Replies

AJAX :: AutoCompleteExtender Control?

Jun 9, 2010

I have an AutoCompleteExtender control as below. I have tested the web service and it is working. When I debug, there is no error message of any kind. But when I type in the TextBox1, the auto completion does not work. Does somebody know what could be the cause?

<
ajax:AutoCompleteExtender
ID="TextBox1_AutoCompleteExtender"
runat="server"
CompletionSetCount="40"
MinimumPrefixLength="1"
ServicePath="http://ourIntranet/webServiceConsistentName.asmx"
TargetControlID="TextBox1"
ServiceMethod="http://ourIntranet/webServiceConsistentName.asmx?op=GetConsistentNameList">
</ajax:AutoCompleteExtender>

View 5 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

AJAX :: Use Autocompleteextender In User Control?

Jun 22, 2010

i want to use autocompleteextender in User Control.

i tried this but not getting any effect

i used webservice asmx file

View 10 Replies

AJAX :: Use AutoCompleteExtender Control Without Web Service Calls?

Apr 17, 2010

I am successful in using the AutoCompleteExtender control by make use of web serivces as the data source (ServiceMethod) to the extender control. My question is do we have any way in assining a code behind method as data source to this control.

removing the ServicePath url and assiging code behind method to ServiceMethod attribute will resolve the issue.

View 4 Replies

AJAX :: AutoCompleteExtender Control Not Displaying Under The Target Textbox

Jun 28, 2010

I'm using the AutoCompleteExtender control with a textbox. The control functions the way I want it to but I have one issue with it. When the page first loads I type something in the textbox and I get a list of suggestions from my database. When the list is quite big the vertical scroll bar appears on the right side of the browser window and the textbox is repositioned to the center of the page (I want the textbox to be centrally positioned and I'm using <center> tags). Unfortunately the AutoCompleteExtender list doesn't reposition and is misaligned. The same thing happens when the browser window is resized.

I've played around with CSS and OnClientShown and haven't managed to fix this. I'm currently using IE8.

View 4 Replies

AJAX :: AutoCompleteExtender Control Does Not Work On Blackberry Browser?

Jan 18, 2010

I use AutoCompleteExtender control in an application. When user types an account name to pull a report, the auto complete control lists the top 40 account names from database, user is able to select an account name or type exact account name to pull a report.

It works fine on regular browsers. But the auto complete function does not work on blackberry browser. No error message either. If user types an exact account name, a report can still be pulled. But if a user does not know an exact account name, no data will return because that wrongly typed account name does not exist.

Does somebody know how I can make auto complete work on blackberry or does somebody know any alternative method?

View 8 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 :: Other Dropdown Hiding AutoCompleteExtender Control List?

Jun 29, 2010

on page AutoCompleteExtender is implemented and just below it, one dropdown is there.

When AutoCompleteExtender displays the list it is getting hide by the below dropdown.

All the controls on page are dynamic.

So, i cannot hide the other dropdowns to get it work.

View 3 Replies

AJAX :: TextBox Control Value Resets To Initial Value, Using WebMethod?

Feb 25, 2010

I need to assign a textbox value selected from a modal dialog. The modal dialog displays a list of addresses. I select a particular locationID from the addresslist launched.

I launch the modal dialog from a Link button.

There are Number and street ,city,postocde fields on the .aspx form. I should extract the Number and steet field from the database for which I use the Webmethod. I set the EnablePageMethods value to true of the Scriptmanager control.

I see that the value gets assigned , but resets to the initial value of the NumberandStreet field before the modal dialog is launched.

I am not able to trace as to what could lead to this. Please find the code attached.

<asp:LinkButton ID="LinkButtonPickUpAddress" runat="server" OnClientClick="OpenAddressList()">Select</asp:LinkButton>
<script type ="text/javascript" language="javascript" >
var locationID;
function OpenAddressList() {
var NumberAndStreet;
locationID = window.showModalDialog('AddressList.aspx', null, 'scroll:no;dialogHeight:330px;dialogWidth:500px;centre:yes');
PageMethods.GetNumberAndStreet(locationID, SetNumberAndStreet);
}
function SetNumberAndStreet(ResultNumberAndStreet) {
document.getElementById('<%=TextBoxNumberAndStreet.ClientID %>').value = ResultNumberAndStreet;
}

In the .vb form i have the web method declared this way

<System.Web.Services.WebMethod()> _
Public Shared Function GetNumberAndStreet(ByVal locationID As Integer) As String
Try
Dim theAddress As New IDAL.Address
theAddress = Utilities.m_objDAL.GetAddress(locationID)
Return theAddress.NumberAndStreet
Catch ex As Exception
Return Nothing
End Try
End Function

Note : The above code is placed in the content place holder of a content page

View 2 Replies

Web Forms :: Call MsCaptcha Control In Static WebMethod Jquery Ajax

Dec 1, 2010

I want to call MsCaptcha Control in Static WebMethod,for validating. so,I want to check mscaptcha value in javascript or jquery without refresh the page.I think it is my solution that i use JqueryAjax.

View 7 Replies

How To Pass A DateTime Value To A WebMethod (ASMX)

Jan 7, 2011

I have a WebMethod with a parameter defined as DateTime. When I call that webservice, I get this error:

[Code]....

Where 'start' and 'end' time are two javascript 'Date' objects.

View 1 Replies

Web Forms :: Error While Accessing Page Label Control In WebMethod During AJAX PageMethods Call

Jul 16, 2012

I found this Article from link : [URL] .... that explains how to call server-side Method from javascript,

I used your code, my server-side function is static, public, and also I added

[System.Web.Services.WebMethod] 
and
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">

View 1 Replies







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