Set expiry date of the posting programatically
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 > Set expiry date of the posting programatically




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

    Set expiry date of the posting programatically  
s21136638@tuks.co.za


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


 
06-26-06 06:18 PM

Hi

I am asking if it is possible to set the expiry date of the posting
programmatically in C#
I am using this code i want the users to set the expiry date using to
htmplaceholders one for the Datetime and one for the time.

cmsContext.CommitAll();
Posting conPosting = CmsHttpContext.Current.Posting;
conPosting.ExpiryDate = DateTime.Now;//It will be placeholder name.
conPosting.Approve();
cmsContext.CommitAll();

I getting this error.
Invalid mode for update. The requested action modifies the state of an
object and can only be performed when the session is in the 'Update'
mode.

The reason why i am doing that the users dont want to use page property
to set the expiry date






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:34 AM.      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