I found this article
http://www.extremeexperts.com/Net/Articles/ClientCallbacksinASPNETWhidbey.aspx which is a bit too advanced for me right now (even if I already read about this technique multiple times when I was reading AJAX related books), but I see from it that I do need to add OnChange attribute from the code behind. I'm just wondering if I put some function, say, "ChangeDataType(...)" and add this function directly in the page, would it work?
I guess I'm going to try.
>Hi everybody,
>
>How can I implement Client-side code for index change event in the DropDown box?
>
>I have an AutoSuggestBox on my form. From the Gender dropdownlist index change I want to be able to change the DataType for this AutoSuggestBox. I found the code that I may try
>
>onblur="asbGetObj('PeopleNoneForm_asbSpouse').
>
>in other words, this gives me JavaScript reference to this control. I may try to now set its DataType (msDataType property). However, I don't see any Client side methods for the DropDown in the list of methods. Should I try to do this from the code-behind?
>
>Thanks in advance.
If it's not broken, fix it until it is.
My Blog