Microsoft Content Management Server - .NET code in a placeholder

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2007 > .NET code in a placeholder





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .NET code in a placeholder
Yvonne

2007-10-22, 7:19 pm

One of our users would like to include this inside a placeholder "<IMG
SRC="http://ad.doubleclick.net/ activity;src=123456;type=s;cat=y;ord=1;n
um=<%
Response.Write(int(rnd()*3141581723+10)) %>?" WIDTH=1 HEIGHT=1 BORDER=0>"

The Response.Write is getting turned into text when the page source is
viewed and they are getting frustrated.

Can someone just validate that this is because placeholder don't support
code execution?

Is it possible to write a placeholder that would support this?

And how about javascript in a placeholder? Is it possible to write a
placeholder to support this?

Thanks!
Stefan Goßner [MSFT]

2007-10-23, 1:21 pm

Hi Yvonne,

you cannot enter dynamic content in a placeholder.
Only static html is allowed.
In addition the content is never executed on the server side.

Cheers,
Stefan


"Yvonne" <Yvonne@discussions.microsoft.com> wrote in message
news:8F737142-C2FF-46D1-855C-9072855A594F@microsoft.com...
> One of our users would like to include this inside a placeholder "<IMG
> SRC="http://ad.doubleclick.net/ activity;src=123456;type=s;cat=y;ord=1;n
um=<%
> Response.Write(int(rnd()*3141581723+10)) %>?" WIDTH=1 HEIGHT=1 BORDER=0>"
>
> The Response.Write is getting turned into text when the page source is
> viewed and they are getting frustrated.
>
> Can someone just validate that this is because placeholder don't support
> code execution?
>
> Is it possible to write a placeholder that would support this?
>
> And how about javascript in a placeholder? Is it possible to write a
> placeholder to support this?
>
> Thanks!



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com