Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

get selected index off cascadingdropdown

Posted on 2010-08-18
5
Medium Priority
?
578 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
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 …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

705 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