Bruno Sampaio
Guest
|
Posted:
Mon Oct 31, 2005 5:50 pm Post subject:
Error with CmsHttpContext.Posting |
|
|
I created a template and a ASPX page with PlaceHolder control. On template, I
defined that the template have use the ASPX page. But, when I run, the
CmsHttpContext.Posting error occurs.
What change I have to do?
Why this error occurs?
Thanks, |
|
Stefan [MSFT]
Guest
|
Posted:
Mon Nov 07, 2005 5:50 pm Post subject:
Re: Error with CmsHttpContext.Posting |
|
|
Hi Bruno,
CmsHttpContext.Current.Posting does not work on an ASPX page as there is no
current posting.
You need to use the CmsHttpContext.Current.Searches class to retrieve a
posting object.
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
----------------------
"Bruno Sampaio" <BrunoSampaio@discussions.microsoft.com> wrote in message
news:454179D5-B511-414A-8245-2C6389B866D4@microsoft.com...
| Quote: | I created a template and a ASPX page with PlaceHolder control. On template,
I
defined that the template have use the ASPX page. But, when I run, the
CmsHttpContext.Posting error occurs.
What change I have to do?
Why this error occurs?
Thanks, |
|
|