Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ContentTemplateContainer=string in msdn2 samples

Reply
Thread Tools

ContentTemplateContainer=string in msdn2 samples

 
 
WT
Guest
Posts: n/a
 
      10-02-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
 
      10-02-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
 
      10-02-2007
Thanks Alexey, I know this, but there is no detailled info on the template
styles and usage.

CS

"Alexey Smirnov" <> a écrit dans le message de
news: ps.com...
> 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
 
      10-02-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
 
      10-02-2007
Yes it is the solution I get.

"Alexey Smirnov" <> a écrit dans le message de
news: ps.com...
> 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
 
      10-03-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/lib...57(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 (, 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
 
      10-03-2007
Great as usual, many thanks.
CS
""Walter Wang [MSFT]"" <> a écrit dans le message
de news:...
> 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/lib...57(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 (, 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

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
where can I find good samples for efficient computation of matrix multiplication? walala VHDL 2 03-24-2010 10:06 AM
msdn2 Web Developer Video Series Bgreer5050 ASP .Net 3 12-02-2007 04:11 PM
Server-Side Asynchronous Web Methods https://msdn2.microsoft.com/en-us/library/aa480516.aspx Peter Yao ASP .Net Web Services 0 06-25-2007 08:54 AM
For Microsoft Partners and Customers Who Can't Download or Access MSDN2... clintonG ASP .Net 4 12-21-2006 08:05 PM
Help... Just installed Visual Studio .Net 2003 and can't get samples to work Mark ASP .Net 4 05-12-2005 10:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57