Mono Support Monox - WebPart - Communication.. API 

Viewed 22016 time(s), 3 post(s), 1/13/2011 9:50:46 PM - by shawndg
1/13/2011 9:50:46 PM
1871 Reputation 252 Total posts

Hello,

I been trying to figure out how to build monox into my own portal using web parts that can communicate with the current running monox system properties.

So far I figured out how to use the AJAX.NET Controls inside my own webpart.. as well as convert another paid web control into a monox control.. GREAT!!.

Now what im trying to do.. is figure out a way for my webpart control to read some of the monox properties..

For example.. if my part is placed on the user profile page... How do I read the current user ID inside the webpart code ?

1
2/14/2011 9:34:37 PM
7207 Reputation 956 Total posts

That is easy:

using MonoSoftware.MonoX.Utilities; 
... 
Guid userId = SecurityUtility.GetUserId();

You might want to download the developer's reference guide that lists all of the methods that can be used to build custom solutions. MonoSoftware.MonoX, MonoSoftware.MonoX.Utilities and MonoSoftware.MonoX.Repositories are nemaspaces you should get familiar with.
P.S. A new API with support for OpenSocial protocol is in the works. It will enable developers to build advanced mashups without using low-level calls.

2
1/14/2011 1:02:15 AM
1871 Reputation 252 Total posts

Thank you.. exactly what I needed..

But now im having another problem.. posted that on its own thread because its not related.. I removed all my custom controls and web parts and dlls and its still happening..

3
This is a demo site for MonoX. Please visit Mono Software for more info.