web-parts

How can you have SharePoint Link Lists default to opening in a new window?

故事扮演 提交于 2019-12-03 16:13:35
In SharePoint, it is easy to set up a List webpart consisting of Links to other documents, folders, sites, etc. Unfortunately, when clicking these links, the default behavior is for the page to open in the current browser window. That is, it does NOT open the page in a new instance of the browser. This has proven annoying for a number of the users on my site. Does anyone know of a way to have the default behavior be to open in a NEW browser window? I'm hoping this is something that can be set in SharePoint rather than having users need to adjust some sort of setting in their browser. It is not

jQuery $(document).ready() not firing

安稳与你 提交于 2019-12-03 11:44:00
Using jQuery 1.4.2 from Google hosted Code. Is there a reason why the following javascript does not fire all 3 document.ready functions when the document is ready? The first $(document).ready() function, which renders headers, and the second, which gives a 'Foo' alert box triggered, but subsequent ones in new <script> blocks aren't triggered, <script type="text/javascript"> $(document).ready(function () { Cufon.replace('h1'); // Works without a selector engine Cufon.replace('h2'); // Works without a selector engine Cufon.replace('h3'); // Works without a selector engine Cufon.now(); }); $

Programmatically insert a List as a webpart in a webpart page in WSS 3.0

与世无争的帅哥 提交于 2019-12-03 10:22:37
问题 I tried searching on the net to programmatically insert a List as a webpart in a webpart page but was not lucky enough. Any thoughts or ideas how i could Programmatically insert a List as a webpart in a webpart page Many Thanks! 回答1: First add these using statements. using Microsoft.SharePoint; using Microsoft.SharePoint.WebPartPages; Then in your code // First get the list SPSite site = new SPSite("http://myserver"); SPWeb web = site.OpenWeb(); SPList list = web.Lists["MyCustomlist"]; //

Displaying the current authenticated Sharepoint user from an asp.net Page Viewer Web Part

瘦欲@ 提交于 2019-12-03 10:10:44
问题 I am creating a standalone asp.net page that needs to be embedded into a sharepoint site using the Page Viewer Web Part. The asp.net page is published to the same server on a different port, giving me the URL to embed. The requirement is that after a user is authenticated using Sharepoint authentication, they navigate to a page containing the asp.net web part for more options. What I need to do from this asp.net page is query Sharepoint for the currently authenticated username, then display

SharePoint error: “Cannot import Web Part”

谁说我不能喝 提交于 2019-12-03 06:05:11
I have a web part that I've developed, and if I manually install the web part it is fine. However when I have packaged the web part following the instructions on this web site as a guide: http://www.theartofsharepoint.com/2007/05/how-to-build-solution-pack-wsp.html I get this error in the log files: 09/23/2008 14:13:03.67 w3wp.exe (0x1B5C) 0x1534 Windows SharePoint Services Web Parts 8l4d Monitorable Error importing WebPart. Cannot import Project Filter. 09/23/2008 14:13:03.67 w3wp.exe (0x1B5C) 0x1534 Windows SharePoint Services Web Parts 89ku High Failed to add webpart http%253A%252F

“List Tools” tab is no longer available after adding webpart to the page

一曲冷凌霜 提交于 2019-12-03 03:19:02
in SharePoint 2010 I have added my webpart above list (standard list or documents library list - it doesn't matter). After this "List Tools" tab is not visible. After some digging I have found, that problem exists even if I add one of the standard SharePoint WebParts. Here is the same problem and description how to reproduce it: http://www.endusersharepoint.com/STP/viewtopic.php?f=10&t=2027 Has anybody found the solution or real workaround for this? //EDIT: I've found a "solution". Ribbon is connected with "actual" webpart. One click on the list (to set the focus on it) and the tab is visible

Displaying the current authenticated Sharepoint user from an asp.net Page Viewer Web Part

给你一囗甜甜゛ 提交于 2019-12-03 00:42:06
I am creating a standalone asp.net page that needs to be embedded into a sharepoint site using the Page Viewer Web Part. The asp.net page is published to the same server on a different port, giving me the URL to embed. The requirement is that after a user is authenticated using Sharepoint authentication, they navigate to a page containing the asp.net web part for more options. What I need to do from this asp.net page is query Sharepoint for the currently authenticated username, then display this on the page from the asp.net code. This all works fine when I debug the application from VS, but

Possible to load a web part inside another?

给你一囗甜甜゛ 提交于 2019-12-02 23:42:39
So, this is what we want to do: We want to have a generic web part with a custom frame around it and then dynamically load other web parts (frameless) inside it. Would this at all be possible you think? A bit like Jan Tielens SmartPart , only not for ASP.Net User Controls, but for other Web parts... ;) Edit: We've been able to do this now. The solution was actually pretty simple. Check out the code: public class WebPartWrapper : System.Web.UI.WebControls.WebParts.WebPart { protected override void CreateChildControls() { Panel pnl = new Panel(); this.Controls.Add(pnl); WebPart dynamicPart =

Sharepoint 2010 - Create a custom menu

匆匆过客 提交于 2019-12-02 09:41:55
Does anybody knows a good step by step tutorial to create a custom menu like the standard QuickLaunchMenu (SharePoint:AspMenu) or a good tutorial to modify the existing QuickLaunchMenu? I'd like to add a background image attribute to the sitemap. This image should be rendered in every menu item. I have no idea how to create a costum menu. Any help would be appreciated. thx No need to use a custom menu. I suggest you use CSS to add your image to every navigation item. Here is a good way to customize the menu however you want. It pulls the data from the sharepoint navigation and still allows

GridView SelectMethod Issue With WebPart Sharepoint 2013

夙愿已清 提交于 2019-12-02 07:34:23
Hi every one , I have a problem with a gridview in webpart sharepoint 2013 ,I use model bind with the gridview and I have assigned a select method to the gridview when I deployed the webpart it raise the following error A public method with the name was either not found or there were multiple methods with the same name on the type x.master thanks alot I have found the solution , you need to register this code within the CallingDataMethod GridView event : protected void GridView1_CallingDataMethods(object sender, System.Web.UI.WebControls.CallingDataMethodsEventArgs e) { e.DataMethodsObject =