Error with CmsHttpContext.Posting
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Error with CmsHttpContext.Posting

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Bruno Sampaio
Guest





Posted: Mon Oct 31, 2005 5:50 pm    Post subject: Error with CmsHttpContext.Posting Reply with 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,
Back to top
Stefan [MSFT]
Guest





Posted: Mon Nov 07, 2005 5:50 pm    Post subject: Re: Error with CmsHttpContext.Posting Reply with quote

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,
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB