Wednesday, April 8, 2009

Method error 500 / 12031 in implementing ajax cascadingdropdown extender


If you are getting Method error 500 or method error 12031 in populating dropdown using ajax cascading dropdown, than you may have missed to include below mentioned line of code in code behind of your asmx (webservice) file


Add this line in webservice's code behind
[System.Web.Script.Services.ScriptService()]

It should look like this

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
public class CascadingDropDown : System.Web.Services.WebService {

It should fix the error
This also occurs if there is any error in your sql statements or webservice code, you need to check them as well

You would also like to read
Implementing Ajax Cascading DropDownList in GridView with databse in ASP.NET

Have fun


Related Posts:
Failed to access IIS metabase error
Blogger - Add dotnetshoutout button to all posts autometically
C#.NET articles - creating online examination system in asp.net using master page and sql server
www.tips-fb.com
Shout it
Stumble Upon Toolbar
Submit this story to DotNetKicks vote it on WebDevVote.com add to del.icio.us saved by 0 users
Subscribe to Feeds

0 comments:

About Me

My Photo
amiT jaiN
Hi, I am amiT jaiN Software engineer working on C#.NET and ASP.NET technologies
View my complete profile

Comments

.NET Resources

Find More Articles


Subscribe To Feeds

Subscribe by E-mail

Enter your email address:

Delivered by FeedBurner


Subscribe in your favorite reader

This site is best viewed with || You may get errors in proper display of this site if using Internet explorer


C#.NET Articles and tutorials,ASP.NET Articles - blog by amiT jaiN