web-parts

Sql Server Error Caused by Web Part

断了今生、忘了曾经 提交于 2020-01-05 04:55:17
问题 I am using webparts to create a dashboard page. To do that i am dynamically loading the webparts. strZoneNumber = "zone" + intCnt.ToString(); UserControl UC = (UserControl)LoadControl(row["c_widget_path"].ToString());//Loads the usercontrol UC.ID = row["c_widget_webid"].ToString(); UC.Attributes.Add("Title", row["c_widget_webid"].ToString()); //UC.Attributes.Add("title" , "Test"); GenericWebPart ucwebPart = wpmDashBoardManager.CreateWebPart(UC);//creates a webpart wpmDashBoardManager

SharePoint 2010 Filter Web Parts

点点圈 提交于 2020-01-03 02:58:08
问题 I cannot seem to get the SharePoint 2010 Filter Web Parts to display. I tried enabling the SharePoint Server Enterprise Web application features at the Site Collection level (Central Admin - Manage Web Applications - Select Web Application - Manage Features - SharePoint Server Enterprise Web application features - Activate) as well as at the Site level (Site Actions - Site Settings - Manage site features - SharePoint Server Enterprise Site features - Activate), but they still don't show up

load sharepoint 2007 webpart to microsoft online emea?

倾然丶 夕夏残阳落幕 提交于 2019-12-31 05:17:16
问题 i have in my visual studio 2007 implemented webpart "Hello World". in project there are webpart.cs, webpart.xml and webpart.webpart files. i builded hole project, and tryed to load webpart.webpart in my online sharepoint project which is on emea microsoft server. loaded followinig: webpartcatalog->load->"webpart.webpart". its loaded allright. but when i want to add it in aspx page coming follow error -> "Cannot import webpart webpart" please help me load "Hello World" webpart. there is XML of

Sharepoint: how can i find all the pages that host a particular web part?

吃可爱长大的小学妹 提交于 2019-12-30 05:03:57
问题 As the question says - is there a way to determine which pages are including my web part? 回答1: If you're looking for code, I've got something for you. If you'd like to find all Content Query web parts then you would call my code like this: FindWebPart("http://server.com/", "Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart"); Here's the code: public static void FindWebPart(string siteCollectionUrl, string webPartName) { using (SPSite siteCollection = new SPSite

Why is this jQuery not working on my Sharepoint page?

坚强是说给别人听的谎言 提交于 2019-12-25 05:34:07
问题 I have this code at the bottom of my Sharepoint WebPart's .ascx file: <script> $(document).ready(function () { alert("The ready function has been reached"); $('#ckbxEmp').on("change", function () { if ($('#ckbxEmp').prop("checked")) { alert("Checked"); } else { alert("Not checked"); } }); }); </script> On running the WebPart (opening a page that has the WebPart embedded in it), I see the "The ready function has been reached" alert, but on clicking the checkbox, there is no alert. The checkbox

Silverlight Web Part not loading until user clicks on page

泄露秘密 提交于 2019-12-25 03:45:12
问题 I am maintaining a Silverlight 4 application that runs as Web Part in SharePoint. However, I have an issue with loading it in Internet Explorer (versions 10 & 11). The user must click on the web page or hit tab for the Silverlight web part to actually load. However, this is not an issue in Chrome. There is a silverlight.js script runs when the page initially loads, but it appears (in Fiddler) that the XAP isn't getting called until the user clicks or or hits tabs on the page. So far, I have

Allowing UserProfileManager Permissions in SharePoint 2010

谁说胖子不能爱 提交于 2019-12-24 09:16:30
问题 I am trying to display a list of users in a custom webpart using the UserProfileManager. For some reason, I can view the webpart and all profiles are output to the screen (maybe because I am an administrator). But when a standard user logs in, they encounter a 403 page. I have done some reading up on this and I know its something to do with permissions. This is what I have in my code: private DataTable GetProfiles() { DataTable dtUserProfile = new DataTable(); //...DataTable Columns

Retrieve HTML of specific element in ASCX [duplicate]

早过忘川 提交于 2019-12-24 07:45:30
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Retrieve contents of HtmlGenericControl inside ASCX WebControl I have an ASCX control embedded on multiple pages that pulls page-contextual data from a Database, binds it to a repeater, and then has a Button_Click event that will email the contents of the repeater to a user. I'm having trouble pulling the data server side. I tried using traditional methods (Inside the code behind of the ASCX) such as: var sw =

Add a WebPart to an Application page

喜你入骨 提交于 2019-12-24 03:43:35
问题 I have a "Data view web part" created from SharePoint Designer. I added the web part to my visual studio project as a "Web Part" . I want to know how to add the web part to an application page. 回答1: Hi i know its kind of late but, today i had to do the same thing, so i followed a great answer on sharepoint.stackexchange.com. But basically is like adding any other asp.net control on an APS.NET page. First you need to define the prefix for that assembly <%@ Register tagprefix="prefix" namespace

ASP.Net check if user is internal or external

£可爱£侵袭症+ 提交于 2019-12-24 03:15:21
问题 Can you suggest me some ways on how to identify if a user is accessing my web application internally or externally? Some methods i tried are: Check browser URL (http, internal - https, external) using Request.isSecureConnection I just need some additional insights. BTW, i am using a Web Part. Thanks. 回答1: Basically, you could do that by checking the client's IP address. There are 3 ranges that can be treated as local (or internal) networks. The 3 ranges are (A , B and C classes) 10.0.0.0/8