Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

get selected index off cascadingdropdown

Posted on 2010-08-18
5
Medium Priority
?
579 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This article discusses how to implement server side field validation and display customized error messages to the client.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses

971 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