Hi CS,
Note the CreateUserWizard inherits from Wizard class. SideBarTemplate is a
property of Wizard class:
http://msdn2.microsoft.com/en-us/lib...rols.wizard.si
debartemplate.aspx
ContentTemplateContainer is a property of class TemplatedWizardStep. To
understand its usage, we need to first understand ITemplate and
TemplatedContainerAttribute.
When a template control instantiates, it needs a container to act as the
binding context of the controls inside the template. For example, you can
use <%# Container.TypedProperty %> in a template to access properties from
the control container. In this case, this property is a control name that
will be used as ContentTemplate's container.
#Templated Server Control Example
http://msdn2.microsoft.com/en-us/library/ms178657(vs.80).aspx
#Mike Christensen: Web Dev Guy : Templates - Part 2
http://blogs.msdn.com/mikechr/archiv...26/583926.aspx
Now back to the question about setting a background image for all steps in
the CreateUserWizard, since this ContentTemplateContainer/ContentTemplate
is only a property of a single wizard step, I don't think it will help
here. Actually we can create a stylesheet rule and apply it to the
CreateUserWizard control itself:
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.test {
background-image: url('img25.jpg');
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CreateUserWizard CssClass="test" ID="CreateUserWizard1"
runat="server" ActiveStepIndex="1">
...
Hope this helps.
Regards,
Walter Wang ((E-Mail Removed), remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.