CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 8/21/2003 6:14:59 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
asp949
Asp.Net User
Seting Properties of Dynamic Controls8/21/2003 6:14:59 PM

0/0

I am fairly new to use of dynamic user controls... and am thinking I am missing something obvious with this.

I have a series of user controls that may or may not be displayed, depending on the state of other variables set throughout the application.

I am using the following method to dynamically add a user control to the page:

Dim uclMyControl As New MyProject.MyControlClass
uclMyControl.prpSetAValue = "Some Value"
uclMyControl.Visible = True
Controls.AddAt(1, uclMyControl)

This does not show my control...

I have tried this method:

Dim uclCreateTextBox As Control = LoadControl("blah/CreateTextBox.ascx")
uclCreateTextBox.Visible = True
Controls.AddAt(1, uclCreateTextBox)

While this shows the control it does not expose the control's properties, thus the control does not exactly work properly...


The ultimate goal is to have interface code that is highly reusable and have an application interface that is very dynamic in nature.


Perhaps I am overlooking a less complicated method of achieving this goal.


Any input is appreciated.
russnem
Asp.Net User
Re: Seting Properties of Dynamic Controls8/22/2003 10:09:58 PM

0/0

What do you mean when you say that it does not expose the control's properties? Are you talking about in the code behind? For example, after you dimension uclCreateTextBox and call LoadControl, you cannot access the properties?
asp949
Asp.Net User
Re: Seting Properties of Dynamic Controls8/22/2003 10:23:13 PM

0/0

correct...

Doing it this way I can access the property called "prpSetAValue" that I built:
Dim uclMyControl As New MyProject.MyControlClass
uclMyControl.prpSetAValue = "Some Value"
uclMyControl.Visible = True
Controls.AddAt(1, uclMyControl)

But this does not display on the screen... and I understand why I can affect this property -- I am creating an object reference to the control's code-behind... If I could get this to display my problem would be solved.


Doing it this way it does display on the screen, but I can not affect that property:
Dim uclCreateTextBox As Control = LoadControl("MyControl.ascx")
uclCreateTextBox.Visible = True
Controls.AddAt(1, uclCreateTextBox)
russnem
Asp.Net User
Re: Seting Properties of Dynamic Controls8/23/2003 12:44:10 AM

0/0

I think this is like a chicken-and-the-egg situation. I believe you're setting a property, but by the time you do that your control has already gone thru it's Page_Load.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
VB & VBA in a Nutshell: The Language Authors: Lomax, Pages: 0, Published: 1998
ASP.NET: Tips, Tutorials, and Code Authors: Scott Mitchell, Stephen Walther, Doug Seven, Donny Mack, Billy Anders, Adam Nathan, Dan Wahlin, Pages: 878, Published: 2001
Instrument Engineers' Handbook: Process Control and Optimization Authors: Bela G. Liptak, Pages: 2464, Published: 2005
Frontiers in Cognitive Neuroscience: Foundations and Frontiers Authors: Stephen Michael Kosslyn, Richard A. Andersen, Pages: 699, Published: 1992
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Visual Basic .NET Programming Authors: Harold Davis, Mark Ridgeway, Pages: 516, Published: 2002
Dynamic Water-System Control: Design and Operation of Regional Water-Resources Systems Authors: Arnold H. Lobbrecht, Pages: 336, Published: 1997
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
The Integration of Process Design and Control Authors: Panos Seferlis, Michael C. Georgiadis, Pages: 654, Published: 2004
Structural Dynamic Systems Computational Techniques and Optimization: Dynamic Analysis and Control Techniques Authors: Cornelius T. Leondes, Pages: 324, Published: 1999

Web:
Seting Properties of Dynamic Controls - ASP.NET Forums Re: Seting Properties of Dynamic Controls. 08-22-2003, 6:09 PM. Contact ... Re: Seting Properties of Dynamic Controls. 08-22-2003, 6:23 PM ...
Problem with dynamic controls in .NET - Stack Overflow Properties set before the control is added to the page's control tree are not persisted to ViewState. You typically set properties that are not dynamic (ID ...
How to: Construct a Dynamic Layout When you add a new control to a window or panel, you can set properties to maximize the flexibility of a dynamic layout. You should avoid setting specific ...
Loading dynamic user control and set it's properties. : C# Hi. I am developing a CMS system and have come accross a problem during loading dynamic user controls. The problems comes from the fact that I do not know ...
Setting Defaults for Widget Dynamic Configuration Properties ... Setting Defaults for Widget Dynamic Configuration Properties ... page in the Control Panel, Community Server will use these default properties. Procedure ...
Dynamic Controls creation in a C# WPF Application (Part 2 ... Title = "Dynamic Controls Creation (Part 2)";. Width is setting the width of ... animation instance and then set its properties for our desired animation. ...
ASP.NET.4GuysFromRolla.com: Dynamic Controls in ASP.NET This article, by Scott Mitchell, examines how to create dynamic controls on a Web ... Next, we need to set the various Label properties we're interested in. ...
Scott on Writing Sometimes I want to create a control, set properties, and use methods of the .... For some reason, I cannot seem to reference the dynamic controls on the ...
dynamic image? store and retrieve properties values? resizable web ... (1) How to display a dynamic image in the web control, can HttpModules ... control can set properties values based on designer time settings ...
Visoft, Inc. Blogs | Dynamic Control ViewState Problems Jul 23, 2008 ... Anyway, even if you follow the correct pattern for creating / recreating dynamic controls, you may either forget (D'oh) or don't set (Double ...

Videos:
Alien life on Earth? Part 14 The Secret groups that control us - James Forrestal - cover ups - The lie NASA = Never A Straight Answer We are born premature WHY! Hard Facts 97% of our DNA - Locked 90% of our brain - Locked 20 of 60 DNA codes - Locked ...
LOZ: Link's Awakening Sound Manipulation An educational example of sound and music simulation in The Legend of Zelda: Link's Awakening using a VBA emulator and Cheat Engine. All Gameboy Col...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
Mechatronics Mechanical System Control - It's the Software! Google Tech Talks September 21, 2006 David Auslander ABSTRACT The history of mechanical system control is one of striving for ever greater complexi...
Mathematical Infinity and Human Destiny There are two approaches to mathematical infinity. It can be seen as defining limiting cases that can never be realized or as existing in some philos...
Computers versus Common Sense Google TechTalks May 30, 2006 Douglas Lenat Dr. Douglas Lenat is the President and CEO of Cycorp. Since 1984, he and his team have been constructi...
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Hour of the Furnaces - 2 of 3 A classic protest film by Fernando Solanas. Part 2 of 3. SUBTERRANEAN CINEMA http://subcin.com THE SUBTERRANEAN COLLECTION http://subcin.com/sub...
Long Beach City Council Meeting Long Beach City Council Meeting
Hora de los Hornos - The Hour of Furnaces (Ep.2) 2




Search This Site:










changing default register

2.0 - login controls and subfolders

no ajax project templates in vs2005 on vista

how can i add a online user counter in share point

sql

site map - add another url to existing sitemapnode

mix personalization on one page

how do you make databound items not show so many items in the designer?

dnn 3.0.13 - install errors

trace security

language changer

please can someone help me. i'm having real trouble here....

asp .net server control property

>> dotnetnuke forums moved <<

the portal source file not working 100%, how to complete manually?

deployment and portal

3.0.6 leftover folder causes error

password recovery

change url in a post event

how to decryption data which encrypted by aes ???

change tab sequence when opening a file?

map quest not working in 2.0.3?

horizontal tabbed menu and sitemap

upgrade to 3.0.13 makes text centered everywhere

displaying different time zones

how to compare a hashed password with a salted hashed password?

help please!!! sql step driving me crazy!!!

using the debugger

asp.net versions to use

vs.net 2005 create procedure

 
All Times Are GMT