Showing posts with label Dataview. Show all posts
Showing posts with label Dataview. Show all posts

Wednesday, February 2, 2011

The way to Add dataview webpart with the content form other site.

Hi,

If you are in a situation to display the list in your ASPX page which is from the other site. It is very easy . Only thing you have to do is creating a connection to the site which is having that list.

Here you go,


1) Open the site where your aspx page is.
2) open the page.
3) In the right site tool bar open Data Sources Library tool bar.
4) In the bottom you can see a link "Connect to another Library".
5) Click on it.
6) Click on add button in Manage Library window.
7) Type the url of site in which the list is sitting.
8) Give some name for your identification and click ok.

Done. Now you can see all the lists and libraries of that site. And you can create a data view webpart with those lists content.

The way to Display Richtext box content with out HTML tags in Data View Webpart.

Hi,

If you are trying to display your list which has a Rich Text Box field in dataview webpart. It shows the content of that field with the html tags like
etc...

To avoid those tags and show the text in a regular style.

1) Open that page in Sharepoint Designer in Slit View.
2) Click the cell that has the rich text box content in the dataview webpart.
3) In the Code part it highlights an XSL tag.
4) In that tag add the parameter "Disable-Output-escaping" with its value as "Yes".

Done. Click on the design view. You will see the content with proper styling.