LogoASPAlliance: Articles, reviews, and samples for .NET Developers
Database Web Site
by Andrew Mooney
Average Rating: 
Views (Total / Last 10 Days): 8692/ 22

Create a Dynamic Database Web Site With ASP.NET

Have you ever wanted to create a web site quickly? Now you can, using a database that contains the content and images for your web pages. Only two ASP.NET pages are needed, one displays your content and the other displays the images. Database WebSite was designed to work with Microsoft Sql Server 2000 or Access 2000. The default.aspx web page has four ASP:Literals that are used to contain the links at the top of the page, the category sublinks on the left, the main content, and the footer content. These Literals are filled with information from the database to dynamically display each web page. The pic.aspx displays images from the database on the web page. You are not required to use the database for images, you could place images in folders and make reference to them.

To edit the content of your Database Website you can use Access 2000, Enterprise Manager, or you could use the
DataGrid Edit Control to build your own online edit pages. If you build online edit pages you will need to add security to them. I have also included in the download zip file an upload.aspx web page that will let you upload images to the database.

[ Run Sample ] | [ View Source ] | [ Download ]

©Copyright 1998-2021  |  Page Processed at 2021-03-02 12:02:25 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search