Database Web Site
page 1 of 1
Published: 02 Oct 2003
Unedited - Community Contributed
Abstract
Use 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.
by Andrew Mooney
Feedback
Average Rating: 
Views (Total / Last 10 Days): 15037/ 30

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 ]



User Comments

No comments posted yet.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-03-29 8:57:11 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search