ddl.Items.Insert(0, new ListItem("yourtextgoeshere))

abhilash donepudi <[EMAIL PROTECTED]> wrote:

Hi

     I am using dropdown list box and grabbing the data from data source.It is taking 
the first value as selected. I try to add a space in the dropdownlist box but no 
luck.This is the following code.

Any help is appreciated.

Abhi

<tr> 
             <td align="left" class="TextSmall">Catogery Search:</td> 
                 <td align="left"><asp:dropdownlist CssClass="TextSmall" 
DataTextField="Code" DataValueField="Code" ID="lstCategory" runat="server" Width="350">
      <asp:listitem> </asp:listitem>
     </asp:dropdownlist>
                   </td>
            </tr>




            
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

[Non-text portions of this message have been removed]


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



                
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to