Imane,

        You need to tell us what doesn't work.  Are you getting an
error?  If so, what is the error message and what line of code does it
indicate?

        Once we know whether the problem is with the data itself or with
the dropdownlist, we can help more.

Cheers,

Peter Brunone
___________________
www.EasyListBox.com

-----Original Message-----
From: imane elfechtani [mailto:[EMAIL PROTECTED] 

Hello everybody,

I have problem filling a drop down list from a
dataset.

here is my peice of code that doesnt work:
con is my connection that I have declared, query is a
string, ds is a dataset , allCities is my dropdown...

con = dbc.connect();
query ="select cityName from VM_CITY";
SqlDataAdapter comm = new SqlDataAdapter(query, con);
DataSet ds = new DataSet();
comm.Fill(ds);
allCities.DataSource = ds;
allCities.DataBind();

would anyone help me plz

Thanks :)

Imane




 
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