Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 7th, 2003, 06:15 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Yugoslavia.
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating control

How can i dynamicly create control in runtime and put it on page in specific place
Thanks Alex
  #2 (permalink)  
Old November 7th, 2003, 09:55 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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(objDynamicallyCrea tedControl)

Peter
------------------------------------------------------
Work smarter, not harder.
  #3 (permalink)  
Old November 13th, 2003, 08:34 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Yugoslavia.
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a new control Bhattachan ASP.NET 2.0 Basics 0 August 12th, 2007 11:07 AM
dynamically creating control rahulpokharna Pro VB Databases 1 January 10th, 2006 04:41 PM
creating com control ojemuyiwa Classic ASP Components 0 August 31st, 2005 05:17 AM
Errro creating control usamaalam Crystal Reports 1 May 19th, 2005 02:17 PM
Re-Creating User Control chiefouko General .NET 2 April 12th, 2004 02:26 AM



All times are GMT -4. The time now is 12:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.