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.

Monox - WebPart - Communication.. API  (Mono Support )

Viewed 13505 time(s), 3 post(s) 1/13/2011 9:50:46 PMby shawndg
shawndg

shawndg

1/13/2011 9:50:46 PM
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 ?

This content has not been rated yet. 
1871 Reputation 252 Total posts
denis

denis

2/14/2011 9:34:37 PM
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.
This content has not been rated yet. 
7207 Reputation 956 Total posts
shawndg

shawndg

1/14/2011 1:02:15 AM
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..

This content has not been rated yet. 
1871 Reputation 252 Total posts