hello,
If you have used AutoCompleteExtender you might have noticed that parameter name "prefixText" and "count" are used . If i change the name of the parameter say from "prefixText" to "prefix" then that web method is not called .
I am really surprised why this is happening !! For the first time i have seen that exact name of parameter is also important , which is totally absurd .
Can anyone explain why this is happening ?
shyam_oec
Member
656 Points
777 Posts
Why same name of parameters in Web service method is required for AjaxControlToolkit ?
Apr 29, 2012 03:56 PM|LINK
hello,
If you have used AutoCompleteExtender you might have noticed that parameter name "prefixText" and "count" are used . If i change the name of the parameter say from "prefixText" to "prefix" then that web method is not called .
I am really surprised why this is happening !! For the first time i have seen that exact name of parameter is also important , which is totally absurd .
Can anyone explain why this is happening ?
XIII
All-Star
182684 Points
23455 Posts
ASPInsiders
Moderator
MVP
Re: Why same name of parameters in Web service method is required for AjaxControlToolkit ?
Apr 29, 2012 04:56 PM|LINK
Hi,
they're defined as such in the designer code of the Autocomplete Extender: http://ajaxcontroltoolkit.codeplex.com/SourceControl/changeset/view/edf1fbcb2745#Server%2fAjaxControlToolkit%2fAutoComplete%2fAutoCompleteDesigner.cs.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chetan.sarod...
All-Star
65729 Points
11138 Posts
Re: Why same name of parameters in Web service method is required for AjaxControlToolkit ?
Apr 30, 2012 03:22 AM|LINK
Hi, Please refer this
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx and http://www.asp.net/ajaxlibrary/act_AutoComplete_Simple.ashx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.