Solved

Create a dynamic page from content

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

708 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

18 Experts available now in Live!

Get 1:1 Help Now