Solved

Create a dynamic page from content

Posted on 2013-10-30
3
329 Views
Last Modified: 2013-10-30
Hi,

I'm using MVC ASP.NET 4 (C#) for developing a basic blogengine from scratch. I'm doing ok with it. I dont know how to create a dynamic page from content which has come from a database.

I have the following bloc

<div class="blodDet">
            <div class="summary">
                <h2><a class="blogTitle" href="??">Blog Title</a></h2>
                <p class="blogDescription">Full blog description which will be what is displayed in the SERPS description area. </p>
            </div>

        </div>

Open in new window


In above code I have an anchor tag in the blog title. What I am trying to do is create a new page displaying the complete blog. So I need to create a new page that is named after the blog title. So a complete dynamic page for each blog once clicked on. Then destroyed when closed. Any ideas on the necessary approach for this.

Thanks in advance.
0
Comment
Question by:blackstarsystems
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39612186
To start with you need the href to go to a page that contains the script to handle the generation of the page.  you will need to pass it some kind of identifier.  I identifier could be the DB key to the content.  

Beyond that, the details of generation and how you do it depends on the DB organization and the templates you want to use.

On my sites I generally generate all pages real time using PHP, but rather then a single script I use template specific scripts for efficiency.

Cd&
0
 

Author Closing Comment

by:blackstarsystems
ID: 39612203
Coolio!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to copy file 14 53
Add a little space on either side of a table. 12 25
Hta File displays dynamic File names 4 50
Table header must be on top 2 31
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question