|
Subject:
|
Creating control
|
|
Posted By:
|
acko
|
Post Date:
|
11/7/2003 5:15:05 AM
|
How can i dynamicly create control in runtime and put it on page in specific place Thanks Alex
|
|
Reply By:
|
planoie
|
Reply Date:
|
11/7/2003 8:55:54 AM
|
1. You need to construct the location where you'll put the control: usually something like a placeholder or a table cell. The control must be accessible from the code.
2. In your code, do this: Dim objDynamicallyCreatedControl As New SomeControlType myContainerControl.Controls.Add(objDynamicallyCreatedControl)
Peter ------------------------------------------------------ Work smarter, not harder.
|
|
Reply By:
|
acko
|
Reply Date:
|
11/13/2003 7:34:19 AM
|
Thanks
|