Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Programmatically Assigning CreateUserStep.ContentTemplate

Reply
Thread Tools

Programmatically Assigning CreateUserStep.ContentTemplate

 
 
terry.aney@charter.net
Guest
Posts: n/a
 
      04-25-2007
I am building a compiled control (so that a dll can simply be
referenced) to build our CreateUser control. Since I am in a library
dll, I can't use HTML to generate markup for the template. I've got
code in *my control* to do the following:

CreateUserWizard register = new CreateUserWizard();
register.RequireEmail = false;
register.CreatedUser += new EventHandler( register_CreatedUser );
register.CreateUserError += new
CreateUserErrorEventHandler( register_CreateUserError );
register.CreatingUser += new
LoginCancelEventHandler( register_CreatingUser );
register.CreateUserStep.ContentTemplate = new
CompiledTemplateBuilder( new
BuildTemplateMethod( register_CreateUserStep_ContentTemplate ) );
view.Controls.Add( register ); // A view in a MultiView control

void register_CreateUserStep_ContentTemplate( Control container )
{
// Several container.Controls.Add() member calls
}

Unfortunately, my BuildTemplateMethod never gets called. Is it not
possible to generate a CreateUserWizard UI from compiled code?

Note that the following for a Login control worked fine:

Login login = new Login();
login.LoggedIn += new EventHandler( login_LoggedIn );
login.LoginError += new EventHandler( login_LoginError );
login.LoggingIn += new LoginCancelEventHandler( login_LoggingIn );
login.LayoutTemplate = new CompiledTemplateBuilder( new
BuildTemplateMethod( login_LayoutTemplate ) );
view.Controls.Add( login );

Thanks in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning methods to objects, and assigning onreadystatechange to an XMLHttpRequest -- an inconsistency? weston Javascript 1 09-22-2006 09:33 AM
Problem assigning selectedItem.Value to a dropdownlist filled with OnItemDataBound Antonio D'Ottavio ASP .Net 1 09-19-2005 09:41 AM
assigning itemtemplate, edititemtemplate programmatically Steve P ASP .Net Datagrid Control 3 03-30-2005 12:53 PM
Assigning present state to output. Mohammed A.khader VHDL 1 09-06-2004 12:21 PM
assigning output to input Simone Winkler VHDL 1 08-28-2003 06:31 PM



Advertisments