Solved

Create a dynamic page from content

Posted on 2013-10-30
3
324 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
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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now