Solved

get selected index off cascadingdropdown

Posted on 2010-08-18
5
575 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 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