|
Home > Archive > Microsoft Content Management Server > April 2005 > HtmlPlaceholder
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]
|
|
|
| Hi All,
I would like to know if is possible in Page_load event
to know if a HTMLplaceholder is used or not. Property HTML
is always empty even if it has a code inside.
Best Regards.
| |
| Stefan [MSFT] 2005-04-28, 7:54 am |
| Hi Mark,
the content of the control is not populated in the page load event.
Either add your code in the OnPreRender event or test the placeholder object
instead of the placeholder control object:
string content =
((HtmlPlaceholder)(HtmlPlaceholderContro
l1.BoundPlaceholder)).Html;
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Mark" <m.guidone@reply.it> wrote in message
news:002401c54bd2$c31b9fb0$a501280a@phx.gbl...
> Hi All,
> I would like to know if is possible in Page_load event
> to know if a HTMLplaceholder is used or not. Property HTML
> is always empty even if it has a code inside.
>
> Best Regards.
| |
|
| Can you give to me an example of OnPreRender event? Which
library must I include for using "HtmlPlaceholder" object?
THX
>-----Original Message-----
>Hi Mark,
>
>the content of the control is not populated in the page
load event.
>Either add your code in the OnPreRender event or test the
placeholder object
>instead of the placeholder control object:
>
>string content =
>((HtmlPlaceholder)
(HtmlPlaceholderControl1.BoundPlaceholder)).Html;
>
>Cheers,
>Stefan
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights
>
>New to MCMS?
>Check out this book: Building Websites Using MCMS:
http://tinyurl.com/6zj44
>----------------------
>
>
>"Mark" <m.guidone@reply.it> wrote in message
>news:002401c54bd2$c31b9fb0$a501280a@phx.gbl...
HTML[vbcol=seagreen]
>
>
>.
>
| |
| Stefan [MSFT] 2005-04-28, 7:54 am |
| Hi Mark,
protected override void OnPreRender(EventArgs e) {
... your code...
base.OnPreRender(e);
}
the Microsoft.ContentManagement.Publishing.Extension.Placeholders.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Mark" <m.guidone@reply.iy> wrote in message
news:006901c54be3$ff361140$a501280a@phx.gbl...[vbcol=seagreen]
> Can you give to me an example of OnPreRender event? Which
> library must I include for using "HtmlPlaceholder" object?
>
> THX
>
> load event.
> placeholder object
> (HtmlPlaceholderControl1.BoundPlaceholder)).Html;
> confers no rights
> http://tinyurl.com/6zj44
> HTML
| |
|
| THX
>-----Original Message-----
>Hi Mark,
>
> protected override void OnPreRender(EventArgs e) {
> ... your code...
> base.OnPreRender(e);
> }
>
>
>the
Microsoft.ContentManagement.Publishing.Extension.Placeholde
rs.
>
>Cheers,
>Stefan
>
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights
>
>New to MCMS?
>Check out this book: Building Websites Using MCMS:
http://tinyurl.com/6zj44
>----------------------
>
>
>"Mark" <m.guidone@reply.iy> wrote in message
>news:006901c54be3$ff361140$a501280a@phx.gbl...
Which[vbcol=seagreen]
object?[vbcol=seagreen]
the[vbcol=seagreen]
and[vbcol=seagreen]
event[vbcol=seagreen]
>
>
>.
>
|
|
|
|
|