Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Plz help me how to create asp page at the run time when I click on button......


thanks ..........to all..
Posted
Comments
Sandeep Mewara 10-Jun-12 5:33am    
And why would you need that? "create asp page" ? Elaborate.
Stephen Hewison 10-Jun-12 7:03am    
ASP.Net pages and their server side code are compiled and as such, in the truest sense, the only way to create asp.net pages at runtime is to programmatically create a solution, project and pages and then build them using the command line and compiler then publish them to the website. There's no way this is the most efficient way of achieving your objective. There are many ways to create a user experience which appears to do this, but in reality are driven by some kind of meta data. If you could describe a real world example where you require new pages I'm sure you'll receive better advice.

1 solution

It's just a little confusing question. What you actually need, perhaps, is use of dynamic partial views. You can generate contents of a partial view at run time, and then return it, which should do the trick.

Other than that, there is not such thing as dynamic ASP.NET page, because every ASP.NET page has a so-called class-behind.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900