I'm not quite sure if this is what you are looking to do, but I think it is. I would use a datareader and query the database and use a foreach loop to iterate through the contents of the DropDownList until a value or text of the DropDownList equals the value in the database field, and then set the DropDownLists selected value to it. BTW - The ASP.NET <http://ASP.NET> group is: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk Ryan
On 7/2/05, asif mehdi <[EMAIL PROTECTED]> wrote: > > > Dear all, > > I desperately need help in asp.net <http://asp.net/>. > > I want make dropdown control > > For select 'a' the list 'a' will come on drop down > > For select 'ab' the list 'ab' will come on drop down > > For select 'abc' the list 'abc' will come on drop down and so on > > Refine data will show in dropdown > > Please any one help me > > Regards > > asif > > > > --------------------------------- > Too much spam in your inbox? Yahoo! Mail gives you the best spam > protection for FREE! > http://in.mail.yahoo.com > > [Non-text portions of this message have been removed] > > > ------------------------------ > YAHOO! GROUPS LINKS > > > - Visit your group > "AspClassicAnyQuestionIsOk<http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk>" > > on the web. > - To unsubscribe from this group, send an email to: > [EMAIL PROTECTED]<[EMAIL PROTECTED]> > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------ > -- Thank you, Ryan Olshan <asp:WebProgrammer /> TeraNet Systems http://www.teranetsystems.com [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> 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/
