Click here to Skip to main content
16,005,552 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Scrolling text on a webform Pin
Johan Martensson13-May-08 22:45
Johan Martensson13-May-08 22:45 
Question[Message Deleted] Pin
please help13-May-08 20:55
please help13-May-08 20:55 
AnswerRe: problem in flyout Pin
eyeseetee13-May-08 21:36
eyeseetee13-May-08 21:36 
QuestionAdd Dependencies in Windows Application Installer [modified] Pin
Satyendra Mishra13-May-08 20:24
Satyendra Mishra13-May-08 20:24 
AnswerRe: Add Dependencies in Windows Application Installer Pin
Christian Graus13-May-08 20:41
protectorChristian Graus13-May-08 20:41 
QuestionCreating a drop down list (databounded) and adding a "Please Select" Pin
Desmond Lim13-May-08 20:00
Desmond Lim13-May-08 20:00 
AnswerRe: Creating a drop down list (databounded) and adding a "Please Select" Pin
Christian Graus13-May-08 20:18
protectorChristian Graus13-May-08 20:18 
AnswerRe: Creating a drop down list (databounded) and adding a "Please Select" Pin
Gayani Devapriya13-May-08 20:49
Gayani Devapriya13-May-08 20:49 
Hi,

Yes its possible.
Have a look at this sample.

DropDownList1.Items.Add(new ListItem("aaa", "1"));
DropDownList1.Items.Add(new ListItem("bbb", "2"));
DropDownList1.Items.Insert(0, new ListItem("-- Please Select --"));

Items.Add() method adds the items to the Dropdown. Over here you may bind the items from the table, thats fine. Then use the Items.Insert() method specifing the index (here it's 0 which will be the first item in your drop down) and give the ListItem ("Please select" text) as the item to be added.

Thx
Gayani
GeneralRe: Creating a drop down list (databounded) and adding a "Please Select" Pin
Christian Graus13-May-08 21:20
protectorChristian Graus13-May-08 21:20 
AnswerRe: Creating a drop down list (databounded) and adding a "Please Select" Pin
TheWirelessGuy15-May-08 9:32
TheWirelessGuy15-May-08 9:32 
QuestionDisk space problem Pin
SreejithAchutan13-May-08 19:04
SreejithAchutan13-May-08 19:04 
AnswerRe: Disk space problem Pin
Christian Graus13-May-08 19:16
protectorChristian Graus13-May-08 19:16 
GeneralRe: Disk space problem Pin
SreejithAchutan13-May-08 19:29
SreejithAchutan13-May-08 19:29 
AnswerRe: Disk space problem Pin
N a v a n e e t h13-May-08 21:09
N a v a n e e t h13-May-08 21:09 
GeneralRe: Disk space problem Pin
Christian Graus13-May-08 21:21
protectorChristian Graus13-May-08 21:21 
GeneralRe: Disk space problem Pin
SreejithAchutan13-May-08 21:25
SreejithAchutan13-May-08 21:25 
GeneralRe: Disk space problem Pin
eyeseetee13-May-08 21:34
eyeseetee13-May-08 21:34 
GeneralRe: Disk space problem Pin
Christian Graus13-May-08 21:37
protectorChristian Graus13-May-08 21:37 
GeneralRe: Disk space problem Pin
leckey14-May-08 3:00
leckey14-May-08 3:00 
QuestionUsing Explicit Resource Expression and Shared Resources Pin
gotdablues13-May-08 8:02
gotdablues13-May-08 8:02 
AnswerRe: Using Explicit Resource Expression and Shared Resources Pin
Gayani Devapriya16-May-08 8:35
Gayani Devapriya16-May-08 8:35 
QuestionSaving User Name And Password. Pin
Pranav Thakur13-May-08 5:29
Pranav Thakur13-May-08 5:29 
AnswerRe: Saving User Name And Password. Pin
l0kke13-May-08 6:19
l0kke13-May-08 6:19 
GeneralRe: Saving User Name And Password. Pin
Pranav Thakur13-May-08 22:12
Pranav Thakur13-May-08 22:12 
GeneralRe: Saving User Name And Password. Pin
l0kke13-May-08 22:39
l0kke13-May-08 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.