473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Database Driven Pages

JJ
[I'm fairly new to asp.net]
I want to create a web site with the page content being driven by my sql
database. This would form the basis of a simple content management system.

i.e. a particular page may be accessed by the url
www.xyz.com/default.aspx?pageid=34

I can achieve this when each page is identical - e.g. contains my custom
text/html control.

The bit I am having problems with is:
How do I deal with adding my other custom controls to one page and not
another.

The one way I could come up with (which doesn't seem very efficient) is to
have some sort of logic built into the default page for each and every
control I write:

i.e. If (database says this page contains xyz control)
Then
(programmatically add control to page in location specifiied, in this order)

- there must be a more logical and efficient way than this. And I'm not
entirely sure how I'd deal with the physical location of the control on the
page.

[I did think about going down the web parts route, (my personalization
provider does take into account the querystring and treats it as a seperate
page) but:
a) I don't really want a user to customise the pages individually.
b) I also though one approach was to use a custom text/html editor in the
web part (when in edit mode) to allow the user 'personalization' of the
text, but I want to keep the page content data in my own tables in the
database and not in the webparts/personalization tables.

If I could get the web part to store the text peronalization information in
my tables, then I guess I could stop a standard user being able to
personalize the site....?]
I'd really appreciate any comments/help anyone can give,

JJ


Apr 16 '07 #1
11 1338
On Apr 16, 10:25 am, "JJ" <a...@xyz.comwrote:
[I'm fairly new to asp.net]
I want to create a web site with the page content being driven by my sql
database. This would form the basis of a simple content management system.

i.e. a particular page may be accessed by the urlwww.xyz.com/default.aspx?pageid=34

I can achieve this when each page is identical - e.g. contains my custom
text/html control.

The bit I am having problems with is:
How do I deal with adding my other custom controls to one page and not
another.

The one way I could come up with (which doesn't seem very efficient) is to
have some sort of logic built into the default page for each and every
control I write:

i.e. If (database says this page contains xyz control)
Then
(programmatically add control to page in location specifiied, in this order)

- there must be a more logical and efficient way than this. And I'm not
entirely sure how I'd deal with the physical location of the control on the
page.

[I did think about going down the web parts route, (my personalization
provider does take into account the querystring and treats it as a seperate
page) but:
a) I don't really want a user to customise the pages individually.
b) I also though one approach was to use a custom text/html editor in the
web part (when in edit mode) to allow the user 'personalization' of the
text, but I want to keep the page content data in my own tables in the
database and not in the webparts/personalization tables.

If I could get the web part to store the text peronalization information in
my tables, then I guess I could stop a standard user being able to
personalize the site....?]

I'd really appreciate any comments/help anyone can give,

JJ
Probably you can look at IBuySpy project from Microsoft (or DNN -
DotNetNuke) where user controls are used to create a dynamic page
content

Apr 16 '07 #2
JJ
Hi Alexey.

I looked at DNN to start with - but I found that its much more than I want
to do. I don't want editors to have that much control over the site!
I also want more flexibility over things like menu/navigation design.

Also I have been looking for IBuySpy on the net, but all the links seem to
redirect to DNN web site....?

JJ

>
Probably you can look at IBuySpy project from Microsoft (or DNN -
DotNetNuke) where user controls are used to create a dynamic page
content

Apr 16 '07 #3
"JJ" <ab*@xyz.comwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
I also want more flexibility over things like menu/navigation design.
In which case, you'd be well advised to stay well away from DotNetNuke...
Apr 16 '07 #4
JJ
That's what I'd thought in my brief look at it. I think I can recognise a
dotnetnuke site just by its navigation - something I don't want viewers of
my sites to notice.

If only I can work out how have the database table specifiy which controls
are on a page and where they are placed, I'd be happy with my own minimal
CMS.

I'd like to have some of the nice features of DNN - like being able to add
'modules' (in my case my custom controls) to a page via my CMS web
interface. But I want to be able to be more creative on the design for the
rest of the site than many of these large cms's allow.

It seems I am asking the impossible (at least for my level of knowledge).

How do you more experienced developers do this? Do you use an out of the box
CMS or just tie the site down and not allow the editor to add controls (i.e
just have a standard 'edit' page for each page layout type on the site).

I can't find any books on the subject (bar the basic introduction to CMS's
for asp), so clearly I've either discovered a huge gap in the market,or I'm
on the completely wrong track to solving my problem (the latter being more
likely).

JJ
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
"JJ" <ab*@xyz.comwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
>I also want more flexibility over things like menu/navigation design.

In which case, you'd be well advised to stay well away from DotNetNuke...

Apr 16 '07 #5
"JJ" <ab*@xyz.comwrote in message
news:OM**************@TK2MSFTNGP05.phx.gbl...
That's what I'd thought in my brief look at it. I think I can recognise a
dotnetnuke site just by its navigation - something I don't want viewers of
my sites to notice.
Oh yes indeed - you can spot a DNN site from miles away... Like you can with
FrontPage... :-)
But I want to be able to be more creative on the design for the rest of
the site than many of these large cms's allow.
That's the problem with software like DNN - fine if you're an end-user who
just wants to knock up a quick CMS and doesn't (want to) know what's
happening behind the scenes, but no use at all for developers who know how
to do things themselves...
How do you more experienced developers do this? Do you use an out of the
box CMS or just tie the site down and not allow the editor to add controls
(i.e just have a standard 'edit' page for each page layout type on the
site).
I use SharePoint...
Apr 16 '07 #6
JJ

That's the problem with software like DNN - fine if you're an end-user who
just wants to knock up a quick CMS and doesn't (want to) know what's
happening behind the scenes, but no use at all for developers who know how
to do things themselves...
Exactly my point.
>How do you more experienced developers do this? Do you use an out of the
box CMS or just tie the site down and not allow the editor to add
controls (i.e just have a standard 'edit' page for each page layout type
on the site).

I use SharePoint...
I'll take a look. Thanks (again).

JJ
Apr 16 '07 #7
On Apr 16, 12:32 pm, "JJ" <a...@xyz.comwrote:
Hi Alexey.

I looked at DNN to start with - but I found that its much more than I want
to do. I don't want editors to have that much control over the site!
I also want more flexibility over things like menu/navigation design.

Also I have been looking for IBuySpy on the net, but all the links seem to
redirect to DNN web site....?

JJ
IBuySpy you can find at http://www.asp.net/downloads/default11.aspx?tabid=62
(the last "Portal Starter Kit")

It's up to you what you will do with it. You can develop your own CMS
based on ideas of IBuySpy (for example, DNN is a community driven
extension of the IBuySpy), or you can adapt it to your needs.

Also, look at this free ASP.net based CMS
http://en.axcms.net

Maybe, you'll find it better than IBuySpy :-)

Apr 17 '07 #8
JJ
Thanks - will take a look at the portal kit to see how its engineered.
Is axcms the system where your tied into using their servers to store the
cms data - I seem to remember something like that?

JJ

>
IBuySpy you can find at
http://www.asp.net/downloads/default11.aspx?tabid=62
(the last "Portal Starter Kit")

It's up to you what you will do with it. You can develop your own CMS
based on ideas of IBuySpy (for example, DNN is a community driven
extension of the IBuySpy), or you can adapt it to your needs.

Also, look at this free ASP.net based CMS
http://en.axcms.net

Maybe, you'll find it better than IBuySpy :-)

Apr 17 '07 #9
On Apr 17, 11:16 am, "JJ" <a...@xyz.comwrote:
Thanks - will take a look at the portal kit to see how its engineered.
Is axcms the system where your tied into using their servers to store the
cms data - I seem to remember something like that?

JJ


IBuySpy you can find at
http://www.asp.net/downloads/default11.aspx?tabid=62
(the last "Portal Starter Kit")
It's up to you what you will do with it. You can develop your own CMS
based on ideas of IBuySpy (for example, DNN is a community driven
extension of the IBuySpy), or you can adapt it to your needs.
Also, look at this free ASP.net based CMS
http://en.axcms.net
Maybe, you'll find it better than IBuySpy :-)- Hide quoted text -

- Show quoted text -
You can install it on your/shared server. I've tested it a little bit
some time ago, but I found it not very intuitive and a bit complex. As
I remember, it handles custom page layout based on controls...

Apr 17 '07 #10
On Apr 17, 11:59 am, Alexey Smirnov <alexey.smir...@gmail.comwrote:
You can install it on your/shared server.
Okay, their website says you can download v6 and earlier. The new
version is not available for download (it means I tested v6)

Apr 17 '07 #11
JJ
Thanks Alexey. I'll try the portal starter kit and see if that gets me
started.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
On Apr 17, 11:59 am, Alexey Smirnov <alexey.smir...@gmail.comwrote:
>You can install it on your/shared server.

Okay, their website says you can download v6 and earlier. The new
version is not available for download (it means I tested v6)

Apr 17 '07 #12

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

Similar topics

3
by: _andrea.l | last post by:
how to build a interfaces (or web pages) in easy way? how to build a form in easy way? how to automate and create web pages whit a tool? which tool to use to create form for a database? I mean...
0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
15
by: DesignGuy | last post by:
I've inherited a site that has 1000+ product pages that follow a similar layout. I would like to import these pages into a database for ease of future updating. The pages have the usual banners,...
7
by: Pecanfan | last post by:
I've got quite a large database which is totally form-driven at the moment. I now need to allow multiple users access to various parts of it and, frankly, I'm not prepared waste my time with...
2
by: NotGiven | last post by:
I am new to patterns and want to learn how to implement the PAGE CONTROLLER model for a web site that has log-in and where the pages are dynamic database driven pages. I will have many questions...
5
by: isideveloper | last post by:
I'm building a new C# web application that will provide my company some administrative operations that were previously only completed by tweaking the data in the database. 1. Encrypted password...
21
by: karen987 | last post by:
I have a news website, with asp pages. It has publishing software which allows you to add articles in a database, and then calls them up from links etc. I have added dynamic meta tags in 2 parts. The...
1
by: beaker | last post by:
Access Database-driven ASP page with embedded RSS feeds Hi, I know very little about web development in general - just some basic html scripting, CSS and a bit of XML. I've inherited a public...
25
by: pereges | last post by:
Hello, I'm trying to build a database driven website for a library management system. The database is stored on a remote server which all of my team mates can access. I've installed MySQL, PHP and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.