Visual Studio .NET - How to create Dynamic Page in asp.net

Asked By Swapnil Salunke on 12-Jul-08 04:51 AM

Hello Friends

I want to make the Dynamic ASP.NET page. Means for each of my post there will be dynamic page created give me complete reference or sample code for making dynamic pages.

Thanks in Adv.

Takecare Bye

How to create Dynamic Page in asp.net - Kalit Sikka replied to Swapnil Salunke on 12-Jul-08 05:45 AM

You have a single page that you would like to show multiple
times in one aspx file continuously with different parameters in
querystring.


For Example:

for i = 1 to 10
Server.Execute "MyPage.aspx?STUFF=" & cstr(i) & ""
next

Reply - alice johnson replied to Swapnil Salunke on 12-Jul-08 06:30 AM

<title>Loading, please wait...</title>  
  <script> 
  var ctr = 1;
  var ctrMax = 50; // how many is up to you-how long does your end page take?
  var intervalId;  
  function Begin() 
  {
    //set this page's window.location.href to the target page
   window.location.href = "<%= Request.QueryString["destPage"]%>";
   // but make it wait while we do our progress...
   intervalId = window.setInterval("ctr=UpdateIndicator(ctr, ctrMax)", 500);
  } 
  function End() {
  // once the interval is cleared, we yield to the result page (which has been running)
   window.clearInterval(intervalId);   
  }
 
  function UpdateIndicator(curCtr, ctrMaxIterations) 
  {  
   curCtr += 1;   
   if (curCtr <= ctrMaxIterations) {
    indicator.style.width =curCtr*10 +"px";
    return curCtr;
   }
   else 
   {
    indicator.style.width =0;
    return 1;
   }
  }
  </script>
</HEAD>
 <body onload="Begin()" onunload="End()">
  <form id="Form1" method="post" runat="server">
      <div align=center><h3>Loading Data, please wait...</h3></div>
   <table id=indicator border="0" cellpadding="0" cellspacing="0" width="0" height="20" align="center" >
    <tr>
     <td  align="center"  bgcolor=red width="100%"></td>
    </tr>
   </table>
  </form>
 </body>
Se this link to Build a Dynamic Progress Page For ASP.NET Pages 
http://www.eggheadcafe.com/articles/20050108.asp

Hello - alice johnson replied to Swapnil Salunke on 12-Jul-08 06:33 AM

u can go through this link

Here is a example of creating dynamic web pages

http://www.beansoftware.com/ASP.NET-Tutorials/Dynamic-User-Interface.aspx

Dynamic Page in asp.net - Shailendrasinh Parmar replied to Swapnil Salunke on 14-Jul-08 01:03 AM
To create dymanic pages,

UrlRewriter.NET is an open-source, light-weight, highly configurable URL rewriting component for ASP.NET 1.1 and 2.0 - http://urlrewriter.net/

For info on how to configure it & construct "rules" to build the URL, check this -
http://urlrewriter.net/index.php/support/using/

URL Rewriting helps to optimize the page for search engines and improves readability.