AJAX :: CascadingDropDown - Method Error 500

Dec 26, 2010

I downlaoded the sample code accompanying the "Cascading Drop Down Control to Access a Database" AJAX Toolkit video, and added the datasets from the sample code to my application running in VS2008 and AJAX 3.5. I think the sample code is in a prior version of AJAX.

When I ran my project I used to get Method Error 500 and after 2 days of searching the web could not get a solution. Finally by chance I recreated the datasets fresh in my app using the wizard as shown in the video and the error dissapeared and the cascading drop down worked beautifully.

View 1 Replies


Similar Messages:

AJAX :: CascadingDropDown Method Error 500

Jun 13, 2010

I have the method 500 error problem, I have tried to do a simple reproduction of the problem still the same, if I run the webservice [URL] it returns the values needed ok (5) in xml format, but the dropdown always return error 500 inside, here are the codes (Using VS2008, NF3.5, Windows 7), I have the whole day trying to solve this but I just can't:

[Code]....

[Code]....

[Code]....

[Code]....

'WEBCONFIG

[Code]....

View 4 Replies

AJAX :: Method Error 500 CascadingDropDown At Server

Jul 8, 2010

I currently facing a cascading drop down list problem. When I develop my website at local pc, everything work just fine. However I deploy it to server, I get Method Error 500.

View 4 Replies

AJAX :: CascadingDropDown - Method Error 500 Only For One DropDown And Service Path Is Correct

May 7, 2015

I have 3 table in database

1-state

Id state
1 USA
2 UK

2-City

Id name state
1 Canada USA
2 London UK

3-Region

Id regionname cityid
1 01 Canada
2 02 London

and I have 3 DropDownList that refer below thread [URL] ...

I use cascadingdropdown for these 3 dropdownlist below are codes:

AND

[WebMethod]
public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues)
{
string query = "SELECT state FROM stateTest";
List countries = GetData(query);
return countries.ToArray();
}

[Code] ....

1-DDLstate

2-DDLcity

3-DDLregion

at first I should select Item from DDLsate then DDlcity and at the end I should select Item from DDLregion

above code work correctly for ddlstate and ddlcity but it doesn't work for ddlregion...

I mean when I select Item from ddlcity in ddlregion shows:[Metod error500]

View 1 Replies

IIS Configuration :: AJAX CascadingDropDown DropDownList - Method Error 500 When Hosted In Server

Dec 21, 2013

Regarding this example: [URL] .... it works locally, within VS 2012.

But when I publish to a local or remote webserver, it doesn't show an error, but the dropdown lists are populated with this line: [Method Error: 500].

View 1 Replies

AJAX :: CascadingDropDown ERROR 403 500 12030

May 19, 2010

I have big problem with the CascadingDropDown. I have 60 CDD with one "Child". So on the page are 60 Parents and 60 Childs. When i use FF3.5 everything works fine when he is the only Browser which is connected to IIS

When i use FF3.0 i get Methode ERROR 403 and 500
When i use IE6 i get Methode ERROR 12030 or 403 or 500
When i use Google Chrome no ERROR no content in the List!?
When i use IE8 sometime it works sometime not!?

This errors are not shown on every DropDownList (but on most of them!) I played with the "<jsonSerialization maxJsonLength="50000000" />" in the Web.config which seams to make it work a little bit better.

What can i do to get the CDD working?

I think it is a timing problem. The CDD are not filled in the order i placed them on the page. Local it works better then remote.

Can you help me?

This is my WebService:

[Code]...

View 12 Replies

AJAX :: Error 500 Using CascadingDropDown Extender

Aug 19, 2010

I am trying to populate 3 dropdown lists with using CascadingDropDown. DDLs shows make, model and color respectively. The last DDL is having AutoPostBack = true and I am trying to display the values from dropdown in one label control. I am pulling data from a webservice to populate DDLs. I am not getting any error while compiling but when I run the code it shows Error 500. I am not sure where I am going wrong. I am following the tutorial video of 'How Do I' -

[URL]

I am using C# and .Net framework 2.0. Web Service code looks like this

[Code]....

And Web Page Default.aspx looks like this -

[Code]....

I don't understand where i am getting wrong.

[WebService(Namespace = "[URL]/")]

View 6 Replies

AJAX :: Using CascadingDropdown Generate Validation Error

Jan 31, 2011

I followed the CascadingDropdownlist tutorial: [URL] The 3 CascadingDropdown im using are working fine. But when i click on the SEARCH button it return the following error:

Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) at system.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)

at System.Web.UI.WebControls.DropDownList.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Then i found this: [URL ]And now i canīt register the ASSEMBLY on the top of the MASTER PAGE.

View 4 Replies

AJAX :: Creating Method Error 'Cannot Create Page Method "GetCompletionList" Because No Code Behind Or Codefile Was Found"

Sep 24, 2010

I added the extender and when i tried to add the method this message poped up; Cannot create page method "GetCompletionList" because no Code Behind or codefile was found.

View 4 Replies

AJAX :: 401 Unauthorized Error In App, AJAX Control Calling Web Method Within Same Page

Jan 10, 2010

I'm using a custom AJAX based validation control to check user name availability from database. It's working alright in my development machine but in production server we are using Windows Authentication to authenticate by domain.The control is inherited from base validator and checks for user name availability from database perfectly but on form submission at Page.IsValid check it gives the following error.

remote server returned an error 401 unauthorized

Both the form and webmethod are in the same page/file. I even tried creating webmethod in a separate standalone webservice but error still there.

View 2 Replies

AJAX :: Getting Error With Method On Tab Container ID

Jul 13, 2010

What am I missing here; this should be straight forward, but when I attempt to access the "get_activeTabIndex()" method on my Tab Container's ID, I get the following error:
"Object doesn't support this property or method"

This is using VS.NET 2010 with the AJAX Control Toolkit built for Framework 4, but I don't think anything was deprecated so this should not be an issue. I extract the ID of the control using serverside script variables, then attempt to access the method, but it fails. Take a look:
[Code]....

Value 'tabCtrl' does indeed have value, as I can see it registers as an object (not NULL or Nothing) and ClientID resolves to the following:
ctl00$ContentPlaceHolderMyApp$AJAXTabContainerNumData

View 5 Replies

AJAX :: Method Error 500 Only Server?

Mar 23, 2010

I'am with problem in CascadingDropList, I develop in my pc and work perfectly, but when put on server show error method 500?

View 2 Replies

AJAX :: Use The AutoCompeteExtender Or CascadingDropDown?

Jan 31, 2010

I have a request:((( Now I can use the TextBox auto-complete but my problem that i use (Key/Value) mean that I should display for example the country name and use the country iso code in the code behind.... so how can I do that by using ajax (TextBox or DropDownList)

View 1 Replies

AJAX :: Use CascadingDropDown Without WebService?

Feb 2, 2010

Can I Use CascadingDropDown without WebService?

View 1 Replies

AJAX :: Cascadingdropdown Add Item?

Nov 23, 2010

Is it possible to add a new item to cascadingdropdown? I tried ddl_master.Items.Insert(0, "3"), but it doesn't show up. When I view the source in the browser it's there.

<asp:DropDownList ID="ddl_master" runat="server" Width="200" CssClass="ui-state-default ui-corner-all">
</asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="cdd_master" runat="server" Category="Action"

[code]...

View 1 Replies

AJAX :: Get The Name Of A Dropdownlist With CascadingDropDown?

Jun 17, 2010

I use the CascadingDropDown to fill several DropDownList in my web to manage different application access rights

I use the Ajax CascadingDropDown component for that.

My problem is that, depending on the application, the selections criterias of the values in my database will be different.

I would like to know if there is a way to get or to identify the name or the ID of the dropdownlist which execute the CascadingDropdown class in the .asmx part (in the "public CascadingDropDownNameValue[] GetApplication1(...)" class ) ??

The name of the DropDownList give me the code of the application manage use to select my data in my SQL query

I don't want to write several query for each dropdownlist like :

public CascadingDropDownNameValue[] GetApplication1(...), public CascadingDropDownNameValue[] GetApplication2(...) etc ...

as they will be create automatically at the loading of the page.

View 6 Replies

AJAX :: Using CascadingDropDown With A Database?

Mar 19, 2010

i am using ajax cascading ddl for binding customer, package, device and leadcount.. i need to bind the package by customer, device by customer & package, leadcount by customer & package & device. but we can pass only one value to the webservice method when binding.. but i need to pass 2 or 3 values to the webmethod. how can we do this. also when i select the customer i need to bind all the 3 controls. but in ajax cascadeing ddl we can give 1 parent control id only. i need the solution for this also...

View 1 Replies

AJAX :: Cascading Dropdown Method Error -1?

Dec 6, 2010

I have a cascading dropdown which loads countries into a dropdownlist.

When I type: www.domain.com, it all works.

However, when I type: domain.com it stops working and the dropdown shows: "[method error -1]"

Here's my code:

<asp:TextBox ID="tbCity" Width="90" MaxLength="50" CssClass="inactive" autocomplete="off" runat="server" />
<cc1:AutoCompleteExtender ID="AutoSuggestCities" runat="server" TargetControlID="tbCity"
CompletionInterval="2" CompletionSetCount="50" MinimumPrefixLength="3" ContextKey="" ServicePath="http://www.domain.com/geolocation.asmx" ServiceMethod="GetCitiesForCountryOrProvince" />

ps. I use url rewriting and to make sure the servicepath is always correct I used the full path.

View 7 Replies

Method Error[500] In Cascading Dropdown With Ajax?

Jan 22, 2011

i hv been tryin since a long time..but not able to resolve my problem.M making a cascadin dropdown with ajax but gettin method error 500 in my dropdown on running it..here's my code1. dataservice.cs file

using System;
using System.Web;
using System.Collections;

[code]...

View 1 Replies

AJAX :: Method Error 500 In Cascading DropDown?

Jul 27, 2010

I have created a dropdown through code behind.Then created a Cascading dropdown that also through code behind.

All the properties of cascading dropdown have been initialized properly (as i think).

And web service method is defined in separate file.

DDL and Cascading DDL have been created in App_code/NewFolder through a class file. That webservice.vb file too is placed in this folder. and webservide.asmx file is placed in root directory of the project.

When i run the project dropdown is filled only with [Method error 500]. query to fetch data from database have been written in webservice.vb file without any known error.

View 3 Replies

AJAX :: Cascading DropDownList - Method Error 500

Sep 24, 2013

I would like to populate Cascading DropDownList From SQL Server.

I prepare my project the same way as in this article: [URL] ....

But all the time I have "Method error 500" I read many articles how to solve this issue but without success.

Below there are my codes:

----SQL DB has two tables:

1.tblUAP (UAP (PK), Start_Date,End_Date)
2.tblGAP(idGAP (PK),GAP,UAP(FK to tblUAP))

 ---project1.aspx

<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="Project1.aspx.cs" Inherits="TEST.Project1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
....
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>

[Code].....

----Services.asmx

using System;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

[Code] ....

What else Can I check ??

View 1 Replies

AJAX :: CascadingDropDown - Only Show When It Has Values?

Jul 1, 2010

I've implemented a cascadingdropdown solution using the demo video here on ASP.NET.

Below is my code for one of my sub-categories. I want to have my sub category controls hidden and only show them if there are sub-categories (not all categories have sub-categories)

So, my question is how to get the count of the subcategories returned by method below and turn on the visibility of the dropdown control from the web method?

View 6 Replies

AJAX :: Getting And Setting The Values Of A Cascadingdropdown?

Jan 27, 2011

I'm using a CascadingDropDown in my page and I need to do the following things :

- Getting the list of elements in the dropdown

- Setting a specific value to the dropdown if it exists in the list

I am a total noob in webservices and javascript so I would like to do this in the codebehind but when I try to get the items of my dropdown, the only one returned is the one that is selected on the client side.

Is there a way to get the full list from the codebehind?

View 15 Replies

AJAX :: How To Use CascadingDropdown Inside Accordion

Mar 2, 2011

I already used the search, but without success.

I want to use a CascadingDropdown inside an Accordion.

The ParentControlID for the CascadingDropdown is in pane1 and the CascadingDropdown in pane2, but it won't work.

When I put them both into one pane it works. But separated into two panes it doesn't work.

View 3 Replies

AJAX :: Using Cascadingdropdown To Update Detailsview

Nov 9, 2010

I have two sets of cascading drop down lists they are contained in a detailsview <edititemtemplate>. The problem is that when the user clicks update; the original data is wiped out and the user has to redo the selection of all items contained in a cascading dropdown even if the user didn't want to change that particular aspect of a record. If the user doesn't select everything an error is thrown by the stored procedure in regrds to null values not being valid.

Is there a way i can use cascadingdropdown so that the current values are visible when the user clicks update; meaning that they don't have to redo selections for all items involving drop down lists. The current selections would be default values.

View 5 Replies







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