PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

ContentTemplateContainer=string in msdn2 samples

 
 
WT
Guest
Posts: n/a
 
      2nd Oct 2007
Hello,

Trying to figure out how to set an image in background of all content steps
for my CreateUserWizard, I found
this documentation in msdn2 about:
<asp:TemplatedWizardStep runat=server ContentTemplateContainer=string....>
and no explanation about ContentTemplateContainer=string.
Elsewhere in documentation for CreateUserWizard it is stated that
ContentTemplateContainer is an internal value, what is the meaning of this
string value ?
Is there a way to define the type of container, a placeholder ?
How to have a common image set in background for templatated steps ?

Moreover what is the <SideBarTemplate> usage ? I can't see it in designer
..

Thanks for help

CS




 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      2nd Oct 2007
On Oct 2, 9:40 am, "WT" <W...@newsgroups.nospam> wrote:
> Hello,
>
> Trying to figure out how to set an image in background of all content steps
> for my CreateUserWizard, I found
> this documentation in msdn2 about:
> <asp:TemplatedWizardStep runat=server ContentTemplateContainer=string....>
> and no explanation about ContentTemplateContainer=string.
> Elsewhere in documentation for CreateUserWizard it is stated that
> ContentTemplateContainer is an internal value, what is the meaning of this
> string value ?
> Is there a way to define the type of container, a placeholder ?
> How to have a common image set in background for templatated steps ?
>
> Moreover what is the <SideBarTemplate> usage ? I can't see it in designer
> .
>
> Thanks for help
>
> CS


I think it's an error in documentation, it shouldn't be used in
declarative syntax. Regarding background - look at the following
article

How to: Customize the ASP.NET CreateUserWizard Control
http://msdn2.microsoft.com/en-us/library/ms178342.aspx

Hope this helps

 
Reply With Quote
 
WT
Guest
Posts: n/a
 
      2nd Oct 2007
Thanks Alexey, I know this, but there is no detailled info on the template
styles and usage.

CS

"Alexey Smirnov" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> On Oct 2, 9:40 am, "WT" <W...@newsgroups.nospam> wrote:
>> Hello,
>>
>> Trying to figure out how to set an image in background of all content
>> steps
>> for my CreateUserWizard, I found
>> this documentation in msdn2 about:
>> <asp:TemplatedWizardStep runat=server
>> ContentTemplateContainer=string....>
>> and no explanation about ContentTemplateContainer=string.
>> Elsewhere in documentation for CreateUserWizard it is stated that
>> ContentTemplateContainer is an internal value, what is the meaning of
>> this
>> string value ?
>> Is there a way to define the type of container, a placeholder ?
>> How to have a common image set in background for templatated steps ?
>>
>> Moreover what is the <SideBarTemplate> usage ? I can't see it in
>> designer
>> .
>>
>> Thanks for help
>>
>> CS

>
> I think it's an error in documentation, it shouldn't be used in
> declarative syntax. Regarding background - look at the following
> article
>
> How to: Customize the ASP.NET CreateUserWizard Control
> http://msdn2.microsoft.com/en-us/library/ms178342.aspx
>
> Hope this helps
>


 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      2nd Oct 2007
On Oct 2, 12:26 pm, "WT" <W...@newsgroups.nospam> wrote:
> Thanks Alexey, I know this, but there is no detailled info on the template
> styles and usage.


Can't you do something like this?

<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<table border="0" style="background: #ccc url(image.jpg) no-repeat
bottom right">
.....

 
Reply With Quote
 
WT
Guest
Posts: n/a
 
      2nd Oct 2007
Yes it is the solution I get.

"Alexey Smirnov" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> On Oct 2, 12:26 pm, "WT" <W...@newsgroups.nospam> wrote:
>> Thanks Alexey, I know this, but there is no detailled info on the
>> template
>> styles and usage.

>
> Can't you do something like this?
>
> <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
> <ContentTemplate>
> <table border="0" style="background: #ccc url(image.jpg) no-repeat
> bottom right">
> ....
>


 
Reply With Quote
 
Walter Wang [MSFT]
Guest
Posts: n/a
 
      3rd Oct 2007
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.

 
Reply With Quote
 
WT
Guest
Posts: n/a
 
      3rd Oct 2007
Great as usual, many thanks.
CS
""Walter Wang [MSFT]"" <(E-Mail Removed)> a écrit dans le message
de news:(E-Mail Removed)...
> 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.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
msdn2 Web Developer Video Series Bgreer5050 Microsoft ASP .NET 3 2nd Dec 2007 04:11 PM
Are there keywords for searchibng MSDN2? clintonG Microsoft Dot NET 0 23rd Jul 2007 03:19 PM
Are there keywords for searching MSDN2? clintonG Microsoft C# .NET 0 22nd Jul 2007 01:39 AM
For Microsoft Partners and Customers Who Can't Download or Access MSDN2... clintonG Microsoft Dot NET 7 1st Jan 2007 12:15 AM
For Microsoft Partners and Customers Who Can't Download or Access MSDN2... clintonG Microsoft ASP .NET 4 21st Dec 2006 08:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 PM.