| Author |
Message |
Ravi
Guest
|
Posted:
Tue Jan 18, 2005 4:35 am Post subject:
How to use one placeholder content multiple times.. |
|
|
Hi,
I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.
My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,
<a href="mailto:ravi@css.com.au">ravi@css.com.au</a>
Could anyone outline how can i display placeholder content
as mailto anchor..
Thanks,
Ravi |
|
| Back to top |
|
 |
Angus Logan [MVP]
Guest
|
Posted:
Tue Jan 18, 2005 6:41 am Post subject:
Re: How to use one placeholder content multiple times.. |
|
|
HI Ravi,
See http://blogs.msdn.com/stefan_gossner/archive/2004/04/24/119546.aspx
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"Ravi" <anonymous@discussions.microsoft.com> wrote in message
news:1d7b01c4fce4$d8428e40$a401280a@phx.gbl...
| Quote: | Hi,
I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.
My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,
a href="mailto:ravi@css.com.au">ravi@css.com.au</a
Could anyone outline how can i display placeholder content
as mailto anchor..
Thanks,
Ravi |
|
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Tue Jan 18, 2005 5:20 pm Post subject:
Re: How to use one placeholder content multiple times.. |
|
|
Hi Ravi,
you can easily retrieve the placeholder content by code in your code behind
file by using the following code:
string content =
CmsHttpContext.Current.Posting.Placeholders["PlaceholderName"].Html;
Then render this content in your mailto link.
Cheers,
Stefan.
"Ravi" <anonymous@discussions.microsoft.com> wrote in message
news:1d7b01c4fce4$d8428e40$a401280a@phx.gbl...
| Quote: | Hi,
I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.
My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,
a href="mailto:ravi@css.com.au">ravi@css.com.au</a
Could anyone outline how can i display placeholder content
as mailto anchor..
Thanks,
Ravi |
|
|
| Back to top |
|
 |
|
|
|
|