web-parts

ASP.NET WebParts and Google Chrome

本小妞迷上赌 提交于 2019-12-24 00:16:13
问题 Hi there I started learning ASP.NET these days. Google Chrome is my default browser and I'm also testing my applications in Google Chrome. I recognized that some Elements of ASP.NET won't run in real time when I use Chrome. For Example ASP.NET WebParts. If I change the modus of the WebPartManager from default to edit (or something else), Google Chrome needs 1 - 2 seconds to renew the page. Internet Explorer does this in real time without any loading times. Any tips to tweak this? I'm a rookie

OnActionExecuting equivalent in standard asp.NET?

て烟熏妆下的殇ゞ 提交于 2019-12-23 22:12:11
问题 Is there an equivalent for MVC.NET's OnActionExecuting in standard asp.NET? ? I thought it would be Page_Load since OnActionExecuting would be called each time an action is executed (or the page loads). But I'm running into inheritance issues when I try to use Page_Load instead. Since it is very difficult to make my solution work with a Page_Load I'm thinking I might not have the best ... solution. Any thoughts on whether they are equivalent or close enough? Background: I'm converting a piece

My webpart event handling does not fire in SharePoint

跟風遠走 提交于 2019-12-23 19:54:22
问题 I started coding something complicated and then realized my event handlers don't work, so I super simplified a button with an event handler. Please see the code below and maybe you can tell me why it doesn't fire? using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Web.UI; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using System.Web.UI.WebControls; namespace PrinterSolution { [Guid("60e54fde-01bd-482e-9e3b-85e0e73ae33d")

How to set an error message from EditorPart when ApplyChanges returns false?

妖精的绣舞 提交于 2019-12-23 01:24:18
问题 I'm developing a custom ASP.Net WebPart using the WebPartManager and I'm creating a custom EditorPart too. For its EditorPart.ApplyChanges method I set the return value to false whenever there is an error. In the EditorZone I get a standard error message indicating that some error happened to the editor, but I want to change that message. Is that possible? Something like... public override bool ApplyChanges() { try { // save properties return true; } catch(Exception ex) { ErrorMessage = ex

How to get all document libraries BUT Form Templates, Style, Customized Reports

对着背影说爱祢 提交于 2019-12-22 05:35:07
问题 I'm building a webpart for SharePoint 2010 to get all the document libraries with usefull info for the user. This means, docs that users uploaded, etc. I don't want to show libraries such as Form Templates, Style Library, Customized Reports, etc... I just want to show only the document libraries with usefull info, as Shared Documents, or any other users create in the future, is that possible? Currently, my logic looks like this: SPListCollection docLibraryColl = wb.GetListsOfType(SPBaseType

jQuery $(document).ready() not firing

早过忘川 提交于 2019-12-21 03:52:28
问题 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

SharePoint error: “Cannot import Web Part”

假装没事ソ 提交于 2019-12-20 19:38:50
问题 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

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

不羁的心 提交于 2019-12-20 14:14:18
问题 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

simple web parts in asp.net show as blank page

时间秒杀一切 提交于 2019-12-20 07:47:54
问题 I am trying to develop web parts in VS 2008/WinXP I created a Web Site project, and added a couple of web parts within the default form in default.aspx <form id="form1" runat="server"> <div> <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> <asp:WebPartZone ID="WebPartZone1" runat="server"> </asp:WebPartZone> </div> </form> When I first ran it (in the debugger), a popup told to me enable Windows authentication in IIS (so something is working!). I enabled the

Sharepoint webpart combobox of lists

北城余情 提交于 2019-12-20 05:28:15
问题 I have a webpart that works off of a list but what I'm trying to do create a dropdown that contains a list of sharepoint lists so that when the user edits the page and selects 'modify shared webpart' they are able to choose a list item and that gets parsed back to the webpart. Any examples or links to examples appreciated! Thanks Dan 回答1: What you are looking for is called a Toolpart. Take a look at this example for a tutorial on how to create one. Overall, your general steps will be: Create