Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / November 2007

Tip: Looking for answers? Try searching our database.

VB6 Combo box text property equivalent in HTML Select control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
swapna.munukoti@gmail.com - 13 Nov 2007 14:08 GMT
Hi all,

Is there a way to display some text in html select control by default
which when the control is clicked, will not be listed in the drop down
that contains its options.

For example:
When I open a page, there is a combo box with "Select" displayed in
that. It looks like that item is selected. But when I click that combo
box, it does not list "Select" in the drop down. Instead it lists the
items to be selected.

I know that this can be achieved in vb6 using Text property of the
combo box control.
But is there a way to achieve the same with HTML controls?

Hope I am clear in explaining what I want to achieve.

Thanks,
Swapna.
Eliyahu Goldin - 13 Nov 2007 14:22 GMT
In theory it is possible on client side with javascript. You need to work
out what event(s) to handle and to manipulate the item collection
programmatically.

Practically, it will be difficult unless you are already experienced in this
sort of tasks. I don't think it is worth the effort.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hi all,
>
[quoted text clipped - 16 lines]
> Thanks,
> Swapna.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.