2

I have an .aspx page. It has some buttons and dropdown controls.

Let's say 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.

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
Red Swan
  • 15,157
  • 43
  • 156
  • 238

2 Answers2

2

A way of doing this:

How to create ASPX Page Dynamically - A Step Ahead Series?

It doesn't sound good though.

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
  • Thanks daniel, i gone through this link. but want to generate aspx, its events, controls , control's event. how to do this? – Red Swan Aug 13 '10 at 07:15
  • Frankly, I've never seen something like this. Maybe you should think in other direction and try other type of solution. – Leniel Maccaferri Aug 27 '10 at 02:24
-2

What about using File.Create to create the aspx file, then response.redirect("newAspx file");

CharlesB
  • 86,532
  • 28
  • 194
  • 218
user1836162
  • 59
  • 2
  • 4
  • 14