AspAlliance.com LogoASPAlliance: Articles, reviews, and samples for .NET Developers
URL:
http://aspalliance.com/articleViewer.aspx?aId=50&pId=-1
Database Web Site
page
by Andrew Mooney
Feedback
Average Rating: 
Views (Total / Last 10 Days): 8240/ 11

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-2024 ASPAlliance.com  |  Page Processed at 2024-04-18 11:01:54 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search