preview error
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 > preview error




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

    preview error  
anabhra


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


 
06-16-06 06:24 PM

Hi,
While editing a template, I get this error when I click on Preview.

Saveplaceholder method failed. page needs to be in update mode..

Any ideas hwo to fix these? i am using custom placeholders on my page and
override the saveplaceholder method.

I added a if clause to prevent any save action depending on the preview
mode. However, that did not help...
--
anabhra





[ Post a follow-up to this message ]



    Re: preview error  
Stefan [MSFT]


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


 
06-16-06 06:24 PM

Hi Anabhra,

it sounds that the code in your custom placeholder control is not correct.
Either you are updating not only in the SavePlaceholderContent method or
your code in the SavePlaceholderContent method behaves badly.

Without more details about the code I cannot comment on the possible reason.
I would suggest to debug the custom placeholder control and the post the
lines of code that cause the problem.

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"anabhra" <sonia@rotaryintl.org> wrote in message
news:3C911B83-3F57-4A2C-A687-6DE1CC9BE749@microsoft.com...
> Hi,
> While editing a template, I get this error when I click on Preview.
>
> Saveplaceholder method failed. page needs to be in update mode..
>
> Any ideas hwo to fix these? i am using custom placeholders on my page and
> override the saveplaceholder method.
>
> I added a if clause to prevent any save action depending on the preview
> mode. However, that did not help...
> --
> anabhra







[ Post a follow-up to this message ]



    Re: preview error  
anabhra


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


 
06-16-06 06:24 PM

Stefan,

This is what I do:
CType(objPlaceHolder, XmlPlaceholder).XmlAsString = "<root><value>"
& strValue & "</value></root>"


This works for a textbox custom placeholder , a calendar placeholder but not
for a checkbox placeholder !! The strValue = _chkBox.checked.tostring.

If I comment this line out, then the preview page shows no error.

Why would the check box be any different?

Thanks,
--
anabhra


"Stefan [MSFT]" wrote:

> Hi Anabhra,
>
> it sounds that the code in your custom placeholder control is not correct.
> Either you are updating not only in the SavePlaceholderContent method or
> your code in the SavePlaceholderContent method behaves badly.
>
> Without more details about the code I cannot comment on the possible reaso
n.
> I would suggest to debug the custom placeholder control and the post the
> lines of code that cause the problem.
>
> 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[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "anabhra" <sonia@rotaryintl.org> wrote in message
> news:3C911B83-3F57-4A2C-A687-6DE1CC9BE749@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: preview error  
Stefan [MSFT]


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


 
06-19-06 12:20 PM

Hi Anabhra,

no idea. What is the content of strValue?

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"anabhra" <sonia@rotaryintl.org> wrote in message
news:BFA85AD8-2189-48D3-BD22-0E0F604FFADB@microsoft.com...[vbcol=seagreen]
> Stefan,
>
> This is what I do:
>        CType(objPlaceHolder, XmlPlaceholder).XmlAsString = "<root><value>"
> & strValue & "</value></root>"
>
>
> This works for a textbox custom placeholder , a calendar placeholder but
> not
> for a checkbox placeholder !! The strValue = _chkBox.checked.tostring.
>
> If I comment this line out, then the preview page shows no error.
>
> Why would the check box be any different?
>
> Thanks,
> --
> anabhra
>
>
> "Stefan [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Re: preview error  
anabhra


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


 
06-19-06 06:19 PM

"True" or "false". It is a checkbox placeholder control that binds to an xml
placeholder.

Thanks,
--
anabhra


"Stefan [MSFT]" wrote:

> Hi Anabhra,
>
> no idea. What is the content of strValue?
>
> 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[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "anabhra" <sonia@rotaryintl.org> wrote in message
> news:BFA85AD8-2189-48D3-BD22-0E0F604FFADB@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: preview error  
Stefan [MSFT]


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


 
06-20-06 12:21 PM

Hi Anabhra,

that sounds weird.
You should open a support case for this.

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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"anabhra" <sonia@rotaryintl.org> wrote in message
news:DD5B23A0-5D47-41A6-B092-74623DA377B9@microsoft.com...[vbcol=seagreen]
> "True" or "false". It is a checkbox placeholder control that binds to an
> xml
> placeholder.
>
> Thanks,
> --
> anabhra
>
>
> "Stefan [MSFT]" wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:43 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