|
-
April 20th, 2010, 06:23 PM
#1
How do I load a reader?
Hi everybody. How do I load a reader with my database connection being in the web.config file? I want to load a dropdownlist with the reader in the default.aspx page.
-
April 21st, 2010, 03:44 AM
#2
Re: How do I load a reader?
What do you mean by a 'reader'? Can you be more precise?
-
April 21st, 2010, 07:57 AM
#3
Re: How do I load a reader?
Excuse me. I meant datareader.
-
April 22nd, 2010, 10:00 AM
#4
Re: How do I load a reader?
Ok. Basically you can use ASP.NET data source controls that minimise the amount of code you would write. The DropDownList is a data-bound control so you should be able to point it to the datasource that you go with. The type of datasource control is up to you. If you have a sql server database I would recommend a SqlDataSource. If you already have some kind of data access layer (sounds like you don't) then you would have more options.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|