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
Method error 500/12031 in ajax cascadingdropdown extender
Posted by
amiT jaiN
If you like this post than join us or share
Labels: AJAX, ASP.NET, C#, DropDownList
Subscribe to:
Post Comments (Atom)
Tags
ASP.NET
C#
GridView
VB.NET
AJAX
Sql Server
JavaScript
FindControl
EditItemTemplate
WinForms
Windows Froms
Session
Visual studio
Web.config
Authentication
ItemTemplate
DropDownList
Forms Authentication
Performance Optimization
Blogger Tricks
Crystal Reports
QueryString
SqlCommand
XML
AutoComplete Extender
BloggerTips
DetailsView
Excel
FileUpload
MembershipProvider
ObjectDataSource
DataList
IIS
LoginControl
ModalPopUpExtender
TraceMobileNumber
Update Panel
Web Service
iTextSharp
AppFabric
Cross Page Posting
DataKeyNames
jQuery
Cookies
FooterTemplate
MasterPage
Progress Template
Server.Transfer
Submit Form
Blog Archive
-
►
2012
(29)
-
►
February
(14)
- ToolkitScriptManager On MasterPage To Use AjaxCont...
- PrintPreviewDialog In Windows Forms DataGridView C...
- Print Printing DataGridView In WinForms C# VB.NET
- Hide Disable Commandfield Or ButtonField In GridVi...
- ExecuteNonQuery ExecuteScalar ExecuteReader Exampl...
- Read Write XML File Using C# VB.NET In Asp.Net
- Check UserName Email Availability In Asp.Net Using...
- SqlCommand ExecuteXmlReader C# VB.NET Asp.Net
- ExecuteScalar Example In Asp.Net C# VB.NET
- ExecuteReader Example Asp.Net C# VB.NET
- SqlCommand ExecuteNonQuery Example C# VB.NET Asp.N...
- Visual Studio Keyboard Shortcuts
- Asp.Net Ajax FilteredTextBox Extender Example
- Asp.Net Maintain ScrollPosition OnPostBack In Chro...
-
►
January
(14)
- Browser Detection In Asp.Net
- Export Crystal Reports To PDF Word Excel In Asp.Ne...
- Asp.Net AdRotator With Timer Example To Rotate Ads...
- Download File From Server In Asp.Net
- AspNet CompareValidator With Date Example
- Create User Registration Form In AspNet
- Visual Studio Remove Unused References With Organi...
- Get RowIndex In GridView RowCommand Event Using Da...
- Save Store Files In SqlServer Database AspNet
- Nested GridView In Asp.Net GridView Inside GridVie...
- Add License Agreement In Visual Studio Setup Proje...
- Ajax Asp.Net PasswordStrength Example
- Invalid Formatetc Structure Ajax Asp.Net Error
- Create User Programmatically Using Membership In A...
-
►
February
(14)
-
►
2011
(46)
-
►
December
(13)
- CreateUserWizard Email Verification Or Confirmatio...
- Login Page Example Using Login Control In Asp.Net
- Set Session TimeOut In Asp.Net Using WebConfig IIS...
- Remove Delete Duplicate Rows/Records From DataTabl...
- DropDownList In DetailsView EditItemTemplate
- A Potentially Dangerous Request.Form Value Was Det...
- Write Modify Web.Config Programmatically At Run Ti...
- GridView XML Edit Delete Insert Update
- Upload And Read Excel File In Asp.Net
- VisualStudio SetupProject Updates Version Already ...
- Read CSV File And Save To SQL Server In ASP.NET C#...
- GridView XMLDataSource Example
- Add Controls Dynamically WinForms WindowsFroms C# ...
-
►
December
(13)
-
▼
2009
(60)
-
▼
April
(11)
- Delete Multiple Rows Records Gridview CheckBox Con...
- Export Import Excel Data into Sql Server Using Sql...
- Find Track mobile phone number location in india
- Trace Mobile Number Location Operator in India
- ASP.NET Bypass Forms Authentication Or Skip Author...
- The backup set holds a backup of a database other ...
- LinkButton in GridView and QueryString in ASP.NET
- Unable To Attach Binding Handle Invalid Error Visu...
- Method error 500/12031 in ajax cascadingdropdown e...
- Disable Browser Back Button Using Javascript ASP.N...
- Highlight GridView Row On MouseOver Using Javascri...
-
▼
April
(11)
Topics
- AJAX
- AppFabric
- ASP.NET
- Authentication
- AutoComplete Extender
- Blogger Tricks
- BloggerTips
- C#
- Cookies
- Cross Page Posting
- Crystal Reports
- DataKeyNames
- DataList
- DetailsView
- DropDownList
- EditItemTemplate
- Excel
- FileUpload
- FindControl
- FooterTemplate
- Forms Authentication
- GridView
- IIS
- ItemTemplate
- iTextSharp
- JavaScript
- jQuery
- LoginControl
- MasterPage
- MembershipProvider
- ModalPopUpExtender
- ObjectDataSource
- Performance Optimization
- Progress Template
- QueryString
- Server.Transfer
- Session
- Sql Server
- SqlCommand
- Submit Form
- TraceMobileNumber
- Update Panel
- VB.NET
- Visual studio
- Web Service
- Web.config
- Windows Froms
- WinForms
- XML
Popular Posts
- Trace Mobile Number Location Operator in India
- Trace Mobile Number In India
- Crystal reports in ASP.NET
- FileUpload Save Images In SqlServer Database in ASP.NET
- Display Images In GridView From DataBase Asp.Net
- Ajax ModalPopUpExtender Example
- Shopping Cart Example Code In ASP.NET GridView DataList
- GridView Examples In ASP.NET 2.0 3.5 4.0
- Disable Browser Back Button Using Javascript ASP.NET
- Scrollable GridView With Fixed Headers Asp.Net

8 comments:
Thanks!!
OMG thanks a lot!
Thanks you only solved my problem
method error 500 in ajax cascading dropdown i use
[System.Web.Script.Services.ScriptService()]
also i got that error
thanks... @Satish
That was easy, thank you!
Method error 500 still persist..Please help
Still that error is there Method Error 500 Pls help...
Post a Comment