开发者

Generate .aspx pages dynamically

开发者 https://www.devze.com 2023-01-11 15:37 出处:网络
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 d

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");

0

精彩评论

暂无评论...
验证码 换一张
取 消