Home > method error > page method error 500

Page Method Error 500

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn cascadingdropdown webmethod error 500 more about Stack Overflow the company Business Learn more about hiring developers or

Ajaxtoolkit Cascadingdropdown Method Error 500

posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community

Method Error 403 Cascadingdropdown

Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up asp.net pagemethod call, using jquery, returns error status 500 up vote 0 down vote favorite I haven't been able to find any good solutions to this issue, so I need som help. I have a PageMethod that I need to call with jquery. The client code looks like this: and the codebehind PageMethod looks like this: [WebMethod] public static double GetTotPrice(int antal) { double totpris = 0; Product _product = Product.GetProductByDate(DateTime.Today); if (_product != null) { totpris = _product.ProductNuPris * antal; } return totpris; } The call returns an error 500. I can't see the reason for this. jquery asp.net pagemethods share|improve this question asked Mar 16 '11 at 10:54 Soeren 44821636 have you been able to run your webmethod in the debugger to make sure it is being called and is returning a value? –Geoff Mar 16 '11 at 10:58 have you tried to debug it? maybe passed value of antal is not integer. –TheVillageIdiot Mar 16 '11 at 10:59 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Please check what you are getting here: var selectedvalue = $(this).val(); I think this is not returning integer value. I have tried your code with following list and it works fine:

 

© Copyright 2019|winbytes.org.