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 34500 time(s), 5 post(s) 26.03.2012 07:39:16by inanc

Related topics

inanc

inanc

26.03.2012 07:39:16
Hello,
Could you give a snippet that describing how to write on the site wall dynamically?
Regards
Inanc
Dieser Inhalt wurde noch nicht bewertet. 
469 Reputation 60 Total posts
denis

denis

26.03.2012 09:30:26
Dynamically? You mean that you want to enter some wall notes from your code, or...?
Dieser Inhalt wurde noch nicht bewertet. 
7207 Reputation 956 Total posts
inanc

inanc

26.03.2012 10:15:05
Yes exactly.Please..Thank you

Dieser Inhalt wurde noch nicht bewertet. 
469 Reputation 60 Total posts
denis

denis

26.03.2012 16:40:00
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);
Dieser Inhalt wurde noch nicht bewertet. 
7207 Reputation 956 Total posts
inanc

inanc

10.04.2012 06:51:12
Hello Denis,
This works very well! Thank you very much.
Regards
Inanc
Dieser Inhalt wurde noch nicht bewertet. 
469 Reputation 60 Total posts