ASP.net DropDownList with with perticular item selected

L

lalit

Can some one please tell me how to make a specuific item selected in
dropdwonlist
my dropdwonlist is bounded with a database table getting something
like this:
<tr>
<td >
Client Name</td>
<td >
<asp:DropDownList ID="cboClientName"
runat="server" DataSourceID="SqlDataSource1"
DataTextField="ClientName"
DataValueField="ClientID">
</asp:DropDownList><asp:SqlDataSource
ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:ConnString %>" SelectCommand="SELECT [ClientID],
[ClientName] FROM [ClientTbl]">
</asp:SqlDataSource>
</td>
<td > &nbsp;</td>
</tr>
from here I want a selected item other than its given by default.

Do I have to use javascript for that
Can some one plz tell me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top