Solved

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

Posted on 2006-07-24
3
946 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
[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 Comments
 
LVL 4

Accepted Solution

by:
DarkXiphoid earned 50 total points
ID: 17166338
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
ID: 17166489
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
ID: 17167422
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

630 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