Showing posts with label differently. Show all posts
Showing posts with label differently. Show all posts

Wednesday, March 28, 2012

Extender web service method is called differently

For a reason i do not understand, i have a web service which the the signature corresponds to what it is supposed to be (I see the signature everywhere) and this extender calls a completly different web method signature...

The extender is the cascading drop down list extender, it is supposed to call :

Public

Function GetDropDownContents(ByVal knownCategoryValuesAsString,ByVal categoryAsString)As AjaxControlToolkit.CascadingDropDownNameValue()

But instead it calls :

Public

Function GetDropDownContents()As AjaxControlToolkit.CascadingDropDownNameValue()

What this does is that it prevents me from knowing what values where already selected. Usually, this could be done by parsing the knownCategoryValues but since i don't get this param anymore, i'm a bit clueless at how to do this.

Can anyone help me understand this problem?

Hi,

I think ASP.NET AJAX will actually fail if it can't find a matching signature (this includes correctly cased parameter names). I'm guessing something else is the culprit here. You might want to take a look at your CascadingDropDown declaration to make sure it's calling the web service you're expecting (and when in doubt, compare against the sample website).

Thanks,
Ted
The problem is not the source or the function being called cause if you read what i said again, it is triggering something in the right web service, it's just not triggering the right function... and to fix the error 500 i had earlier i have to create a parameter less web method which is completly useless in this case...

Wednesday, March 21, 2012

Event triggering. Same problem. exposed differently.

Greetings. I will reformulate my problem in hope someone can give me a lead on it.

1) I have two textbox, that will contains dates.

2) They both have an MaskedEditExtender and a MaskedEditValidator attached to them to validate the proper date format.

3) A CalendarExtender is also linked to each of the text box.

4) Everything works fine, EXCEPT now, somehow, for some dark and unknown reason I haven't figured out yet, there is now no way of triggering the "onTextChanged" handler of the textboxs. Even if I don't use the calendar to enter the date and I type directly in the textbox, no event is triggered at all.

So my question is : Does anybody know what is wrong ? Seems to me that the MaskedEditValidator is taking over and not letting the onTextChanged event being broadcast. If that's the case, is there any workaround or any way to trigger an event when new text is inputed ?

Thanks a lot.

I am having the same problem (with the onTextChanged not firing).

I have a texbox and a calerdarextender within my gridview. I currently have an add button in each row that the user clicks to submit the chosen date, however I need to change this to make it work so that the row is added automatically when the user selects a date and the textbox text is changed. This textchanged event never fires...any ideas on how I can achieve this result while using the calendarextender control?

Thanks...