Click here to Skip to main content
15,908,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am working now on a project:

In this project our page is divided into a leftpane, right pane, top pane and a bottom pane and each pane consists of one or more modules and each module consists of one or more controls.

The problem here is that I want to draw my page in runtime taking in mind that:

- we know which pane the module will be allocated in for example left ,right, etc.
- we know also the vertical-align ex bottom or middle, etc. and horizontal-align i.e. left,right,center,etc. for each control inside the module.
- about the control it will be as a separate user control page'.ascx'

Any ideas,

Thanks
Posted
Updated 15-Dec-10 0:18am
v2
Comments
Abdul Quader Mamun 15-Dec-10 6:06am    
Question is not clear.
moon2011 15-Dec-10 7:56am    
i meant that i want to make my page dynamic .
mean, i have modules in the page that i know where it will be in the page. but often i can choose which module can be appear or not.
so, how can i make that in the run time?
did you understand me?
thanks

1 solution

draw your template static and add a plcae hodler for each side then you can add your controls.

For example : LeftPlaceHolder.Controls.Add(MyCustomControl);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900