Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 29th, 2007, 02:09 AM
Authorized User
Join Date: Jul 2007
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in dropdownlist

Posted - 11/29/2007 : 06:00:50 AM Report Abuse


   I want to have a dropdownlist with fixed width(in a web form using asp.net 2.0 and c#) and when
I click the dropdownlist, I should get its value like example

          | dropdownlist |
          |Hear is god. |
          |Work and worship. |
          |Life is beautiful. |
          |Enjoy every moment of the life. |

How to achieve this by using only dropdownlist.
Is there any property in dropdownlist to achieve the above.
Please give your valuable suggestion.

  #2 (permalink)  
Old November 29th, 2007, 02:32 AM
Friend of Wrox
Join Date: Aug 2006
Location: Amman, , Jordan.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts

man I don't get your question! do you mean other than the Width property or wut!

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
  #3 (permalink)  
Old November 29th, 2007, 10:01 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

What I think he wants is so that the rendered control might be 50px but when he clicks on the arrow to show the list of the DDL, the list itself might be 100px.

In any event, if you set the width of the DDL to 50px the list that pops up will also only be 50px. There might be some CSS magic that you can do so that the dropdown control and the list itself are displayed with different width's, but I doubt it.

From a useability standpoint this is a horrible idea because if you select, say, "Enjoy every moment of the life" from your list, your ddl will only display "Enjoy every mome" as the selected item. This can become confusing.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdownlist Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 2 November 11th, 2006 09:24 AM
DropDownList Problem cmw231 ASP.NET 2.0 Professional 0 July 14th, 2006 08:44 AM
Problem with dropdownlist somnath.kartic ASP.NET 1.0 and 1.1 Basics 3 February 8th, 2006 01:59 AM
dropdownlist problem naresh.net ASP.NET 1.0 and 1.1 Basics 4 July 7th, 2005 01:22 AM

All times are GMT -4. The time now is 01:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.