Skip to main content

SharePoint Development in Visual Studio


SharePoint projects by using either Visual Basic or Visual C#.
Documentation
Documentation
Documentation
Featured Tasks
Walkthroughs
Walkthroughs
Code Samples
Code Samples
Training
Training
Forums
Forums
Training
Blogs
How Do I? Videos
How Do I? Videos
Channel 9 Videos
Channel 9 Videos
MSDN Developer Center
MSDN Developer Centers
Providing Feedback
Providing Feedback
Provide feedback about Visual Studio:
Provide feedback about the documentation for Visual Studio:
  • Lightweight View. If you are at the top of any topic, you can choose the Rate this topic link to jump to the bottom of that topic, where you can specify Yes or No in response to Did you find this helpful? You can then select one or more of the check boxes that appear if you chose No, provide more information in the text box, or both. When you finish, choose the Submit button.
  • Scriptfree View. At the top of the topic, choose the Feedback link to provide feedback in the MSDN, TechNet and Expression Library Feedback forum.
  • Classic View. At the top of the topic, choose the Click to Rate and Give Feedback icons to provide feedback about the topic to the documentation team.
Post a Comment

Popular posts from this blog

SharePoint Interview Questions and Answers

SharePoint Interview Questions and Answers

Get More Questions and Answers

QWhat is SharePoint?AnsSharePoint is a browser based document collaboration platform given by Microsoft.

QWhat are features of SharePoint 2010?AnsSome features are :
·Document Collaboration ·Enterprise Search FAST Search ·New Enhance Web Part ·Ready made Silver Light web part ·Business Connectivity Services ·Social Media Investments ·Large lists ·Enhanced collaboration features ·Visio Services ·Usage reporting and logging ·Better Network Differencing & SharePoint Offline in SharePoint Workspace ·High Availability/ Disaster Recovery Innovation ·Admin Insights through the Logging & Usage database, and dev dashboard ·Service Applications ·

How to get current logged user information using JavaScript ?

This is post which is simple and not really needed. But when I started writing the code in ECMAScript I have faced problems in getting the logged in user information. So, my readers may feel good after see this post and really most the users are looking for this too.
By this time, we have really understood all about ECMAScript Client Object Model and debugging. So, it's easy for us to know it well.
Please find the code below to get the current user information.


<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">

Now copy & paste this JavaScript code after above mentioned tag :
<script type="text/ecmascript">

        ExecuteOrDelayUntilScriptLoaded(getUserData, "sp.js"); 


    // To Get Current User Name
    var context = null; 
    var web = null; 
    var currentUser = null; 
    var currentUserId=''
    function getUserData() {

            context = new SP.ClientContext.get_current(…

SharePoint Interview Questions and Answers

How does Client object model works Q. How does Client object model works? Ans. When we use SharePoint client API’s to perform a specific task, the SharePoint Foundation 2010 managed client object model bundles up these uses of the API into XML and sends it to the server that runs SharePoint Foundation. The server receives this request, and makes appropriate calls into the object model on the server, collects the responses, forms them into JavaScript Object Notation (JSON), and sends that JSON back to the SharePoint Foundation 2010 managed client object model. The client object model parses the JSON and presents the results to the application as .NET Framework objects (or ECMAScript objects for ECMAScript).
Q. How many types of Client Object model extension are available in 2010 and when would you use one or the other. Ans. To develop rich client side solutions, three set of client-side APIs has been introduced in the Microsoft.SharePoint.Client namespace. The three APIs are targeted for t…