Solved

get selected index off cascadingdropdown

Posted on 2010-08-18
5
569 Views
Last Modified: 2013-11-08
I have a cascadingdropdown extender to which I need to get the selected index. HOwever, selectedindex is not a property of the cascadingdropdown. It will allow the selectedvalue, but I need the selectedindex.

Please help
0
Comment
Question by:mlg101
  • 3
  • 2
5 Comments
 
LVL 11

Expert Comment

by:ICaldwell
ID: 33471731
Are you trying to get this from the VB.Net code, or JavaScript?  You have put this in both AJAX and .Net channels so I am unsure which one you are asking for....  Also if you are talking about JavaScript, please let us know if your using the Microsoft AJAX tools build into .Net or XML tools in JavaScript...

Thanks
0
 
LVL 1

Author Comment

by:mlg101
ID: 33471808
Im using the ajax control toolkit with visual basic and .net
0
 
LVL 11

Accepted Solution

by:
ICaldwell earned 500 total points
ID: 33471894
As far as I know the selected index is not a property or extended in the framework, you could extend the control to make a custom control for this but its a pain, just curious, why don't you use a dropdownlist?  Why do you need to index, what does that give you over the selected value?
0
 
LVL 1

Author Comment

by:mlg101
ID: 33472052
You can't get the value from a dropdownlist when it is tied to the cascadingdropdown extender. If you try, you just get a 0 value. so you have to get it from the cascading dropdown. if I ask it for selectedvalue, then it gives me the index, plus the value, such as "1..text value, and i just need the "1", not the text, so I can reference it in my database as a number only.
0
 
LVL 1

Author Closing Comment

by:mlg101
ID: 33532682
I used the dropdownlist. For some reason, it wouldnt work the first time I tried it, but now that you mentioned it, it worked!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now