MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

writing dynamically on the site wall (Closed) (Mono Support )

Viewed 32231 time(s), 5 post(s) 3/26/2012 7:39:16 AMby inanc

Related topics

inanc

inanc

3/26/2012 7:39:16 AM
Hello,
Could you give a snippet that describing how to write on the site wall dynamically?
Regards
Inanc
This content has not been rated yet. 
469 Reputation 60 Total posts
denis

denis

3/26/2012 9:30:26 AM
Dynamically? You mean that you want to enter some wall notes from your code, or...?
This content has not been rated yet. 
7207 Reputation 956 Total posts
inanc

inanc

3/26/2012 10:15:05 AM
Yes exactly.Please..Thank you

This content has not been rated yet. 
469 Reputation 60 Total posts
denis

denis

3/26/2012 4:40:00 PM
using MonoSoftware.MonoX.Repositories;
using MonoSoftware.MonoX.Utilities;
using MonSoftware.Core;
...
NoteRepository repository = NoteRepository.GetInstance();
SnNoteEntity note = new SnNoteEntity(GuidExtension.NewSequentialGuid());
note.ApplicationId = MembershipRepository.GetInstance().GetApplicationId();
note.LanguageId = LocalizationUtility.GetCurrentLanguageId();
note.UserId = SecurityUtility.GetUserId();
note.DateCreated = DateTime.Now;
note.NoteContent = "This is some sample text";
repository.SaveEntity(note);
This content has not been rated yet. 
7207 Reputation 956 Total posts
inanc

inanc

4/10/2012 6:51:12 AM
Hello Denis,
This works very well! Thank you very much.
Regards
Inanc
This content has not been rated yet. 
469 Reputation 60 Total posts