I am developing a webpart for SharePoint in Visual Studio 2005. I am making use of a user control in this project. Now, I have to obtain the currently logged in user using JavaScript and check whether he is an administrator for the site collection.
If the user is supposed to be an administrator, then i have to show a div, otherwise I have to hide that div using JavaScript. How can i achieve this? Any insights provided on this would be of great use.
