Reputation: 2127
I need to create .aspx page at runtime:
Say for Ex:
I have a configuration xml file, it has 2 main nodes and each has its subnodes as below:
<?xml version="1.0" encoding="utf-8"?>
<Root>
<Options name="First">
<controls>
<control type="textbox" lable="Option1TextBox" value="">
</controls>
</Options>
<Options name="Second">
<controls>
<control type="textbox" lable="Option2TextBox" value="">
<control type="dropdown" lable="Option2dropdown" value="Value1, Value2">
</controls>
</Options>
Any suggestion/guide will be highly appreciated.
Upvotes: 0
Views: 649
Reputation: 5493
You need to perform some steps to achive what you want.
DropDownList
SelectedIndexChanged
event.Upvotes: 0
Reputation: 223247
Instead of creating an "aspx" page at the run time, you should look into creating User Control for ASP.Net and then adding them at run time according to your need.
Upvotes: 4