Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Client-side selected index change in the dropdown box
Message
De
11/07/2008 12:51:51
 
 
À
11/07/2008 12:38:03
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01330601
Message ID:
01330604
Vues:
28
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform