Microsoft Content Management Server - Re: How to change the properties at runtime for Imageplaceholder c

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2006 > Re: How to change the properties at runtime for Imageplaceholder c





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 Re: How to change the properties at runtime for Imageplaceholder c
Stefan Goßner [MSFT]

2006-11-15, 7:20 am

Hi Sekar,

this is by design.
This change will not show up till the next round trip to the server as the
current CmsHttpContext already contains the old values.

Cheers,
Stefan


"Sekar" <Sekar@discussions.microsoft.com> wrote in message
news:1DDB8228-3151-433C-B56E-3B0810806A48@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
>
> Please look the new modifed code below
> // Get the MCMS application context.
> CmsApplicationContext cmsContext = new CmsApplicationContext();
>
> // Logon to MCMS:
> // Assumes that you have Windows Authentication turned on.
> WindowsIdentity ident = HttpContext.Current.User.Identity as
> WindowsIdentity;
>
> // Make sure to set the context to Update mode (which means you can write
> // back to MCMS using PAPI).
> //cmsContext.AuthenticateUsingUserHandle(ident.Token,
> PublishingMode.Update);
>
> ..................
> ........................
> .......................
>
> CmsHttpContext.Current.CommitAll();
>
> But still its not taking the new values, Please help me.
>
> Thanks and Regards,
> Thenappan
>
> "Stefan Goßner [MSFT]" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com