473,466 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to create a baisc CMS in ASP.NET

Hi,
I would like to have this functionality to create a basic CMS in
ASP.NET. What I would like is is all the page names (urls) and content
be stored in the database. When a user clicks on a link in the website,
(As there will be no page present physically in file system) all page
not founds (404 errors) in IIS should be redirected to default.aspx and
from there, I would like to look up the database and display the page's
content. Thus I could have as many pages in the database making the
system dynamic.Has anyone done this in .NET.Pls let me know
Thanks,
Shaleen

May 21 '06 #1
4 1008
For assignments it would be better to visit http://www.asp.net/.

Tasos

May 21 '06 #2
Check out url rewriting. As long as it has an ASPX extension, you
should be able to handle the 404 and such through asp.net, before IIS.

HTH,
Darren Kopp

May 21 '06 #3
"Darren Kopp" wrote ...
Check out url rewriting. As long as it has an ASPX extension, you
should be able to handle the 404 and such through asp.net, before IIS.


Forgive me if I'm wrong - but doesn't the request hit IIS before .net?
Therefore, wouldn't having a custom 404 (or other error messages) be handled
more efficiently by letting IIS manage them (even if you change the custom
error pages to your own code etc)?

Again, if I'm wrong please ignore me :o)

Rob
May 21 '06 #4
IIS will pass the request to the asp.net engine if the extension of the
page you are requesting is set to do so (aspx is set to be passed to
asp.net by default). this way the .NET framework can handle 404, 500,
etc type errors (you can define these through the web.config). for
this reason you can have pages that don't exist seem to return data
(like mapping shoes.aspx to products.aspx?id=5).

that i believe is what he is looking for, as he mentions "as the pages
do not exist", thereby being dynamic, meaning an HTTP Handler through
asp.net, though you are correct that you could handle this through IIS,
as what would happen automatically, but doing so through asp.net will
allow you to use the application_error event and so forth.

hopefully that makes sense :S

HTH,
Darren Kopp

May 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
10
by: Shapper | last post by:
Hello, I am working on an ASP.NET / VB web site and I need to have 2 versions: In English and French. I could create two versions of the web site by duplicating all the pages. Is that the...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.