|
Home > Archive > Microsoft Content Management Server > June 2006 > preview error
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]
|
|
| anabhra 2006-06-16, 1: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
| |
| Stefan [MSFT] 2006-06-16, 1: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
| |
| anabhra 2006-06-16, 1: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 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...
>
>
>
| |
| Stefan [MSFT] 2006-06-19, 7:20 am |
| 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:
>
| |
| anabhra 2006-06-19, 1: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
> 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...
>
>
>
| |
| Stefan [MSFT] 2006-06-20, 7:21 am |
| 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:
>
|
|
|
|
|