Create WebPart

Posted on 2011-04-19
Last Modified: 2012-05-11
Hello Great expert,

This is really important for me.

I want to create webpart. This webpart should able to pull out record from Webservices.

Function for this webservices.
1. Pass "Project Number" then it will return project details.

Now, I need webpart which can able to call this webservices with "Project Number" parameter. and I want project details display in my webpart to end users.

Can you please write short example code or very details on this?

Thanks for your help in advance.
Question by:parikh12
    LVL 9

    Accepted Solution

    for SP2010:
    1. create new Web Part project in VS2010
    2. add web service reference to this project and you will get WS proxy class
    3. put OnRender override method in your web part code behind
    4. make a call to your WS through the proxy class in your Render method and display the result with HTML

    please note that scenario above is oversimplified, and if you don't have enough details to implement your web part with my steps then most probably you should not try to do it at all

    Author Closing Comment


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
    Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now