Hi,
I was searching an article about creating controls at runtime based on a master table. But I couldn’t find one. So I decided to write my own code and here is the result. I hope this post will help other guys who are looking to do same thing.So let’s first create a master table which will store details about fields need to appear on our page.
Let’s call this table tblFieldMaster. |
 |
| Now Insert some data in it. |
 |
Now add a new webForm to your website project ( i assume you know how to create a website project with visual studio 2005 or 2008). Let’s Name it createControl.aspx.
Add following code to newly added webform between tag. |
Recent Comments