CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 6/30/2004 9:17:24 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
ghost0pz
Asp.Net User
Templated User Control6/30/2004 9:17:24 PM

0/0

I've done some searches through this form and on google and haven't found the correct keyword combination to find me my answer so here goes...

I have a user control that is very basic. Its meant to act as a "content box" to allow me the same look and feel regardless of the content placed inside. Here's an example of how I would use it...


<my:ContentBox id="Contentbox1" runat="server">
<TitleTemplate>
Page Navigation
</TitleTemplate>
<ContentTemplate>
<iewc:TreeView id="tvwNavigation" runat="server"></iewc:TreeView>
</ContentTemplate>
</my:ContentBox>


What is causing me the problem is in the Page_Load event of the page that has this content box I attempt to access the tvwNavigation control in the control collection of the content box and it fails because it hasn't been loaded yet. This is because the control seems to get rendered after the page. So what could I do to get the control to render so I can access the child controls inside the template?

Thanks
tatochip
Asp.Net User
Re: Templated User Control7/2/2004 3:23:20 PM

0/0

If you post the code for the control class that would help a lot too. Some general suggestions -

Understand the order that things fire in, this helps:
http://weblogs.asp.net/tatochip/archive/2003/08/06/22873.aspx

Also understand the lower-level underpinnings of templated controls, and how to use the ITemplate interface, as it'll help you a whole bunch. This article really helped me understand this idea (most likely better than anything else I've read on the topic):
http://msdn.microsoft.com/asp.net/using/building/webcontrols/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-buildtemplatedsrvrcntrls.asp

FYI - Templated control development had me STUCK dead in my tracks for weeks. Don't get frustrated and don't break anything. It's a weird idea to implement programmatically, and if you give it some time, you'll get it. That second article really helped me a whole lot.
brady gaster
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Developing Web Applications with Visual Basic.NET and ASP.NET Authors: John Alexander, Billy Hollis, Pages: 400, Published: 2002
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Visual Basic .NET Power Coding Authors: Paul Kimmel, Pages: 708, Published: 2003
Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit: visual web developer 2005 express edition starter kit Authors: David Sussman, Alex Homer, Pages: 312, Published: 2005
Pro WPF: Windows Presentation Foundation in .NET 3.0 Authors: Matthew MacDonald, Pages: 980, Published: 2007
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
Programming WPF: Building Windows UI with Windows Presentation Foundation Authors: Chris Sells, Ian Griffiths, Pages: 863, Published: 2007
ASP.NET Unleashed: unleashed Authors: Stephen Walther, Pages: 1488, Published: 2003
Pro ASP.NET Web Forms Techniques Authors: Alex Homer, Pages: 580, Published: 2003

Web:
How to: Create Templated ASP.NET User Controls You can create user controls that implement templates, an ASP.NET feature that allows the separation of control data from its presentation.
Creating a Templated User Control Creating templated user controls affords you the ease of adding user controls to pages in your application without compiling a custom control into a .dll ...
CodeProject: Creating a Templated User Control. Free source code ... Dec 1, 2007 ... This article explains how to create your own repeater, with templates.; Author: Manikandan.net; Section: User Controls; Chapter: Web ...
Supporting Templates with ASP.NET User Controls - ScottGu's Blog This allows a page developer to pass templates to the user control like so: .... Additionally, if you are implementing a templated user control with a ...
Creating a Templated User Control with ASP.Net 2.0 « Lee Dale Aug 11, 2007 ... Templated User Controls allows us to seperate the controls data from it’s presentation because a Templated User Control does not provide a ...
Templated User Control & intellisense Talk about Templated User Control & intellisense. ... I built a very simple templated user control but unfortunately, the template ...
DotNetSlackers: Creating a Templated User Control Creating a Templated User Control. Posted by: The Code Project Latest Articles, on 02 Dec 2007 | View original. This article explains how to create your own ...
Templated User Control - Paging DataRepeater « Jim 2.0’s Blog Templated User Control - Paging DataRepeater. August 12, 2007 by Jim. This is something that I’ve wanted to do for a while and I finally wrote the code for ...
Templated User Control Nov 12, 2007 ... I'm trying my first Templated User Control. I've got it to work at runtime, but design time is giving me problems.
Using Templated User Control - getting the values from the ... I've created a simple logon page with two textboxes, txtUID and txtPSWD. The code is posted below. When I try to access the textbox value in my code behind ...

Videos:
Dynasign Digital singage Introduction With its "think big, start small" philosophy and moderate pricing, Dynasign offers an enterprise class digital signage online platform with advanced ...
056-REPORTS Hands-On #2 (Oracle Training) In this hands-on, you will learn how to: use report wizard, use report style group left, use template, use pre-viewer, use zoom in and out, use the ...
Fingerprint reader, Fingerprint computer access control, Fingerprint USB flash drives, Fingerprint portable storage,Pen Drive, drive stick,HDD, biometric How to avoid remembering the boring but necessary passwords ? How to avoid losing the personal/business data of a large chunk ? Say goodbye to pa...
Creation of a website within 10 minutes (video) About UcoZ.com Project UcoZ is a project called to help anyone who wish to create his/her own Web site. Existing site can be made more rich and in...
ZohoCreator Problems With Lookup Fields ZohoCreator Problems With Lookup Fields General YouTube - ZohoCreator relationships between forms youtube.com/watch?v=WJ4222pCbI0 ZohoCreator relati...
Email Fusion - Email Marketing Tutorial Take a brief walkthrough of our user-friendly interface and easy to use, newsletter software. This software provides it's user complete control over...
Zoho Creator UI suggestions ZohoCreator UI suggestions General YouTube - ZohoCreator relationships between forms youtube.com/watch?v=WJ4222pCbI0 ZohoCreator relationships betw...
Sony AV3000 User Review Sony AV3000 Remote Find more video product reviews in the Electronics or Accessories categories at www.expotv.com Videopinions are Expo TV members ...
How To Create Real-Time Overlays of Source and Record Metadata Using AVX Effects Lets take a look at the Avid AVX Timecode effect plug-in. This segment-based effect allows for real-time overlay of source and record metadata as par...
How To Create and Edit Open Captions with AVX Effects The AVX Timecode Burn-in Effect Generator is a new feature available with: Avid Media Composer Software v3.0 and above; Avid Symphony v3.0 and above;...




Search This Site:










user controls: to load or not to load

question: active frame does not support this element 'asp:listitem' ?

process flow control

anyone use halfpricehosts.com?

dynamic control

applying styles to button

affinity - gate - valueweb

private variables versus viewstate...

do i have to compile my user control?

'[propertyname]' could not be initialized.

control works fine in 1.1, but not 2.0 (viewstate error)

accessing webservice with windows usercontrols in ie

properties of a custom control

web custom control and project time support...please help me!

multiple <@ register lines

proper way to register client-script with a sub-classed validator

knowing items added/removed in itemtemplate in design mode

how to host an asp.net 2.0 website on 2003 server iis 6.0

please help hosting problems.

can't debug designer

strange behavior with bool property on composite control!

accessing a public variable from within an click event

control with auto-generated id could not be located

using components as data sources in design time

get volume serial number

error trying to pxe boot.

the basics of viewstate management in a server control

isa 2004 standard configuration

how is this for colocation costs...

restoring dynamic controls

  Privacy | Contact Us
All Times Are GMT