Generate .aspx pages dynamically
I have an .aspx
page. It has some buttons and dropdown controls.
Let's say 开发者_JS百科I click on a particular button then it must redirect to the page which we have to generate dynamically. This dynamically generated page will have of course dynamic controls and events. So basically what I want to know is how to generate this new .aspx
page on click of existing page's button click, and how to add dynamic controls to the generated page's code behind.
A way of doing this:
How to create ASPX Page Dynamically - A Step Ahead Series?
It doesn't sound good though.
What about using File.Create
to create the aspx file, then response.redirect("newAspx file");
精彩评论