ASP.NET - Dynamic aspx and aspx.cs generation - Asked By Muhammad Deeraf on 16-Jan-10 06:44 AM

I want to know some thing about eggheadcafe forum.

I have noticed that whenever I post an answer of a question new aspx page is generated and the whole content is available in the new page. The page name is the subject of your post. I want to know that what they are doing to do so.


Thanks

re - Web Star replied to Muhammad Deeraf on 16-Jan-10 07:08 AM

I would suggest using a database to store the dynamic content, and then use standard web development techniques for querying a database for content in same page in different way

other wise lots of raticle describe how u create aspx page at runtime

http://www.codedigest.com/Articles/ASPNET/170_Creating_ASPX_Page_Dynamically_in_ASPNet.aspx

http://www.codeproject.com/KB/aspnet/PrintPreview.aspx

URL rewriting - mv ark replied to Muhammad Deeraf on 16-Jan-10 10:22 PM

Having the page title in the URL makes it search engine optimized. It's one of the reasons you will generally find Eggheadcafe high in the search results when you are searching for topics related to web development.

This technique can be implemented using URL rewriting. URL rewriting allows you to take a URL like:
example.com/posts/default.aspx?postid=34
and publish it as:
examples.com/seo/aspnet-seo-optimization-with-url-rewriting/

For more detailed info on how you can accomplish this, check these links -
http://grokable.com/seo-amp-asp-net-put-keywords-in-the-url/
http://www.macronimous.com/resources/developing_SEO_friendly_websites_with_ASP_NET_2.0.asp

Re - Huggy Bear replied to Muhammad Deeraf on 18-Jan-10 06:30 AM

You can use HttpHandlers in order to perform the URL rewritings in ASP.NET.
thnx - Muhammad Deeraf replied to Web Star on 18-Jan-10 07:05 AM
end of post
thanx, how can i forget url rewriting :D - Muhammad Deeraf replied to mv ark on 18-Jan-10 07:06 AM
end of post
Thanks buddy - Muhammad Deeraf replied to Huggy Bear on 18-Jan-10 07:06 AM
end of post