<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: All about creating asp.net pages dynamically</title><link>http://forums.asp.net/thread/1727018.aspx</link><pubDate>Sun, 27 May 2007 01:46:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1727018</guid><dc:creator>jasonjanofsky</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1727018.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1727018</wfw:commentRss><description>&lt;p&gt;I second the url rewriting man, unless you absolutely have to have HTML.&amp;nbsp; With the rewriting you can also do stuff like, in the case of a news site, lookup &lt;a href="http://www.mysite.com/2007/05"&gt;http://www.mysite.com/2007/05&lt;/a&gt; to bring up a list of all records in may 2007, or &lt;a href="http://mysite.com/2007"&gt;http://mysite.com/2007&lt;/a&gt; for all articles in 2007, then if you get a .html, in your rewriting lookup, you can have the name of the file, before the .html be an ID number or something to pull it from your db.&lt;/p&gt;
&lt;p&gt;Also, when guys named Scott (Guthrie, Allen, Mitchell)&amp;nbsp;who blog about ASP speak, we should all listen.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sometimes I want to change my name to Scott&lt;/p&gt;</description></item><item><title>Re: All about creating asp.net pages dynamically</title><link>http://forums.asp.net/thread/1726820.aspx</link><pubDate>Sat, 26 May 2007 18:18:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1726820</guid><dc:creator>bitmask</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1726820.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1726820</wfw:commentRss><description>&lt;p&gt;One way to achieve this is to use a technique known as URL rewriting. There is a good article here: &lt;a class="" href="http://msdn2.microsoft.com/en-us/library/ms972974.aspx"&gt;URL Rewriting in ASP.NET&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: All about creating asp.net pages dynamically</title><link>http://forums.asp.net/thread/1726818.aspx</link><pubDate>Sat, 26 May 2007 18:17:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1726818</guid><dc:creator>robi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1726818.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1726818</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t know how community server are doing it, but here is how i would probably do it.&lt;/p&gt;
&lt;p&gt;Just create a page that does exactly that, i mean gets the record displayed in it from the page name.&lt;/p&gt;
&lt;p&gt;To get the page name without the extension you can use:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; CurrentFileName &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = IO.Path.GetFileNameWithoutExtension(Request.FilePath)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;After you have created this page, and checked that it is working, you can use the IO.File.Copy method to copy it to your new location,&lt;br /&gt;with a new name, the name of the id you want to display.&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;IO.File.Copy(&amp;quot;E:\SomeFolder\TemplateFile.aspx&amp;quot;, &amp;quot;E:\OtherFolder\&amp;quot; &amp;amp; newId &amp;amp; &amp;quot;.aspx&amp;quot;)&lt;/p&gt;
&lt;p&gt;Then to get the HTML version you need to save the output of the file.&lt;/p&gt;
&lt;p&gt;Read this on how to do that:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://west-wind.com/weblog/posts/481.aspx"&gt;http://west-wind.com/weblog/posts/481.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;And then ofcourse you save that output to a file on the server, for that read this:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://aspalliance.com/152"&gt;http://aspalliance.com/152&lt;/a&gt;&lt;/p&gt;</description></item><item><title>All about creating asp.net pages dynamically</title><link>http://forums.asp.net/thread/1726789.aspx</link><pubDate>Sat, 26 May 2007 17:33:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1726789</guid><dc:creator>ejedspence</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1726789.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=1726789</wfw:commentRss><description>&lt;p&gt;I want to create pages dynamically&lt;/p&gt;
&lt;p&gt;I am developing a site in which i want to display the data in a database in a page but i want to make the pages to be named the id of record i want to display.&lt;/p&gt;
&lt;p&gt;I want it in two different ways html and aspx.&lt;/p&gt;
&lt;p&gt;Some thing of that nature was done in Community starter kit but i really couldn&amp;#39;t get it &lt;/p&gt;
&lt;p&gt;i need a good explanation on how to go about it.&lt;/p&gt;
&lt;p&gt;Thank you and expecting response very soon.&lt;/p&gt;</description></item></channel></rss>