SharePoint daily tip Web parts, sharepointweb parts

Source: Internet
Author: User

SharePoint daily tip Web parts, sharepointweb parts
SharePoint daily Tip Web Part Project Description This Web part selects a random item from the specified SP custom list or a selected RSS source and displays an image, title, and Tip. Applicable to WSS 3.0, MOSS 2007, and SP2010. attribute Configuration

  • SP list containing Tip;
  • RSS source URL;
  • List fields corresponding to images, titles, and Tip;
  • One image (optional );
  • Refresh or display a new Tip every day.
This allows you to display random data contained in any SP list. You only need to specify the target SP list and column name. Edit Web parts
Effect
WSP -- point free http://download.csdn.net/detail/u012025054/7694231

How to call webservice in sharepoint2010 in webpart

I want to remind you of the following points:
1. Based on your functional requirements, we recommend that you use eventhandler to add processing methods for ItemAdded and ItemDeletede events of list1, so that you can add and delete list2 synchronously, you do not need to manually trigger it.
2. If manually triggered, that is, adding a webpart. You only need one button, and there is no need to introduce usercontrol. You just need to create a new button in the background and then delegate a processing function.
3. There are sound interfaces for operating the sharepoint list in webpart, and webservice is not required. With such a simple requirement, it will be very troublesome to call the built-in webservice. It has many parameters and it is unnecessary to update items in xml format. You only need to use the SPlist object to implement the interface.

I would like to point out the above information on the Internet. I would like to say that you can learn it without looking at the code. It will be very confusing to simply look at it. You need to perform this operation once, so you can learn that sharepoint development is a piece of window paper, which can be broken with a single click. The key is to do it with your own hands. If you encounter any specific problems during your own operations, let's ask again.

[High reward] Add a webpart in sharepoint. The webpart reads and displays the information added in the list. How can this problem be solved?

Points?
Core C # code
Private void show (){
SPWeb web = SPContext. Current. Web;
SPList list = web. Lists ["your list Title"];
Foreach (SPListItem item in list. Items)
{
DoSomething (item );
}
}

Private void DoSomething (item)
{
// You can take every column of the Item and choose what to do.

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.