Capture on pre-load?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Capture on pre-load?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Capture on pre-load?  
Matt.Whitby


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-22-06 06:15 PM

What I have:

I have a template with a few editable regions on it.  The main region
contains a bunch of text.
All fair enough so far.

What i've written:

I have written a routine to scan through a bunch of text looking for
keywords/phrases and turning them into hyperlinks which point at a
glossary page.

The problem i'm having:

MCMS constructs the page in some sort of cunning way and creates an
.htm file which I then re-direct to when I want to view it.

Response.Redirect(@"http://" + Request.ServerVariables["server_name"] +
"/nmrlearningzone/" + this.cboChannels.SelectedValue.ToString() + @"/"
+ this.lstPostings.SelectedItem.Text.ToString() + ".htm");

The Question:

Is there a way I can process the contents of the placeholder before
it's rendered to the .html page?  If so is there an event which is
fired?


All and any suggestions would be gratefully received.

Matt.
Little England






[ Post a follow-up to this message ]



    Re: Capture on pre-load?  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-23-06 12:28 PM

Hi Matt,

the easiest way to do this is in the LoadPlaceholderContent method of the
placeholder control.
This means you would need to create a custom placeholder controld derived
from the original placeholder control, override the LoadPlaceholderContent
method, call the base LoadPlaceholderContent class and then do the
modification of the content you are looking at.

Cheers,
Stefan


"Matt.Whitby" <matt.whitby@gmail.com> wrote in message
news:1164215733.019376.12600@j44g2000cwa.googlegroups.com...
> What I have:
>
> I have a template with a few editable regions on it.  The main region
> contains a bunch of text.
> All fair enough so far.
>
> What i've written:
>
> I have written a routine to scan through a bunch of text looking for
> keywords/phrases and turning them into hyperlinks which point at a
> glossary page.
>
> The problem i'm having:
>
> MCMS constructs the page in some sort of cunning way and creates an
> .htm file which I then re-direct to when I want to view it.
>
> Response.Redirect(@"http://" + Request.ServerVariables["server_name"] 
+
> "/nmrlearningzone/" + this.cboChannels.SelectedValue.ToString() + @"/"
> + this.lstPostings.SelectedItem.Text.ToString() + ".htm");
>
> The Question:
>
> Is there a way I can process the contents of the placeholder before
> it's rendered to the .html page?  If so is there an event which is
> fired?
>
>
> All and any suggestions would be gratefully received.
>
> Matt.
> Little England
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:48 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register