Solved

DetailsView with dropdownlist. SelectedValue doesn't apear in the intelliSense.

Posted on 2006-07-24
3
937 Views
Last Modified: 2006-11-18
Hi,

I had to allow selection from DropDownList in edit mode of DetailsView control instead of the default TextBox so I used this example : http://blogs.msdn.com/robburke/archive/2006/03/09/547082.aspx

It works good. but the only thing that I don't undertand is that in the html tab  I don't see the SelectedValue property in the DropDownList properties intelliSense. But if I write it manually it works good : SelectedValue= '<%# Bind("State")%>'.

My question is why the SelectedValue doesn't apear in the DropDownList  intelliSense. Is that a bug of the Visual Studio ?  

David
0
Comment
Question by:fdsafog56
3 Comments
 
LVL 4

Accepted Solution

by:
DarkXiphoid earned 50 total points
Comment Utility
It probably doesn't display in the intellisense because the dropdownlist isn't physically there until the DetailsView is rendered. So basically, VS doesn't know it exists until the DetailsView is made.

Can you access the dropdownlist in the code-behind page, eg: if your dropdownlist's ID = DropDownListDV, and you type DropDownListDV, does it display in the intellisense list?

Regards,

Robert
0
 
LVL 19

Expert Comment

by:DreamMaster
Comment Utility
Indeed the dropdownlist won't show you it's properties. Simply because it is nested in the detailsview and Visual Studio doesn't understand that there is another control that you'd like Intellisense information for. It's not so much a bug in Visual Studio as it is a feature that was never implemented.

Regards,
Max.
0
 

Author Comment

by:fdsafog56
Comment Utility
Thanks Robert and Max.
When I drag a DropDownList on a form(not in detailsView) and I turn from the Design tab to the source tab ,I look for SelectedValue property in the intelliSense and I don't find it there but I can find it in the code behind, so the reason that I don't see SelectedValue property in the intelliSense(In the source tab) must be other than you mentioned.
Indeed, the reason I can't see the dropdownlist properties in the code behind is because it is nested in the detailsview  .

What is the reason that some properties don't appear in the intellisense in the source tab but  they apear in the code behind intellisense ( like SelectedValue ) ?

Thanks in advance.

David
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

744 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