web-parts

How do you filter a SharePoint list with a text field?

天大地大妈咪最大 提交于 2019-12-12 09:05:58
问题 I have a SharePoint list, which is paged. I want to allow the user to enter a search string in a text field and then filter that paged list. Is there a way to do this with a Filter Web Part? 回答1: Welcome to StackOverflow! Add a Form Web Part to the page with your list view Click Edit -> Connections -> Provide form values to -> "Your List Name" Click Next Choose the column you want to be filtered in the List View Web Part Click Finish 回答2: Kit provided you with a straight forward answer. But

Sharepoint custom web part property does not show up in the toolbox

孤者浪人 提交于 2019-12-12 08:22:01
问题 I have defined a boolean property as follows: [Browsable(true), Category("Display"), DefaultValue(false), WebPartStorage(Storage.Shared), FriendlyName("Obey Workflow"), Description("")] public bool ObeyWorkflow { get; set; } I'm expecting it to render as a checkbox in the webpart's properties toolbox, however it doesn't show up. My web part is derived from the Sharepoint WebPart base class. 回答1: You are on the right track. You just need to use different attributes. [Personalizable

Sandbox solutions seem to be too severely crippled

依然范特西╮ 提交于 2019-12-12 08:16:10
问题 I am learning SharePoint and the different kind of solutions you can deploy. From the training I am watching it seems like you should try your best to use a Sandbox Solution when ever possible. This is because Farm Solutions can mess things up too much. However, two of the main things I would do with WebParts are not supported in Sandbox Solutions. Those are Visual WebParts and WebPart communication. (The first is not allowed because it needs to hit the file system and the second is

Retrieve the values from a list to Gridview in SharePoint Webpart?

无人久伴 提交于 2019-12-12 03:22:34
问题 I have a List called Registration and the following are the columns of my list. Column : Type Employee Name : Person or Group Manager Name : Person or Group Practice Name : Single line of text Program Name : Lookup Status : Choice Prerequisite : Multiple lines of text And now i created a web part which will display all these values as a grid view here is the code which i have done for webpart.cs protected void Page_Load(object sender, EventArgs e) { gridViewManager.DataSource = GetData();

Sharepoint web part form validation blocks updating web part settings

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:02:35
问题 I have written a web part in C# for Sharepoint 2007 which has a single field which is validated as a required field using RequiredFieldValidator() . The web part also has some configuration fields (ones you edit by clicking on Modify Shared Web Part). When I make changes to these fields and try to apply them, the validation of the user field kicks in and prevents the update, even though I am not submitting the form. I am only trying to submit the settings. The web part may be used in a few

How can I add jQuery to a WebPart (to respond to certain events on the WebPart)?

青春壹個敷衍的年華 提交于 2019-12-12 01:38:22
问题 I started down the path of adding an UpdatePanel to my Sharepoint page so that I can respond to events that take place (such as the checking of checkboxes and mashing of radio buttons, etc.). That so far has, however, been wrought with frustration and all that rot, as can be deduced from this question. So I'm now probably going to traverse (no pun intended) the jQuery route and am trying to figure out/find out how to add jQuery to a WebPart. Currenlty, I am dynamically creating controls in C#

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

。_饼干妹妹 提交于 2019-12-12 01:35:38
问题 I have a piece of code that works in a VS.C# project, but when this code is part of a webPart in Sharepoint, it throws an error. ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create(validateUrl); HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse(); Validate url is a HTTPS-uri. In Sharepoint, when I add the first rule it throws an

calculate age in xslt from birthday

。_饼干妹妹 提交于 2019-12-11 18:24:55
问题 I have a variable caled Birthday which will have value like 1/1/1970 . I need to calculate the age of a person based on that value. It would basically be the year from currentdate()-year from the Birthday variable. But How do I achieve this in XSLT? It is related to sharepoint DateView webpart. There is a field Birthday of datetime type. I need to extract age using that field. Can anyone point me in the right direction? 回答1: My favorite resource for anything XSLT is Dave Pawson's website. One

Determine the property name in a SharePoint Webpart for XML

拥有回忆 提交于 2019-12-11 16:46:11
问题 I'm employing a custom webpart that is made by an unaffiliated third party. I've created a feature which adds this webpart to a page. It's working mostly fine, except that I can't figure out the name of a specific property that needs to be defined. I tried obvious ones that match the display name on the tool pane view, adding the company's name in front of said display name, and many similar permutations. All of which to no avail. I would much prefer to include the property to the feature, as

Can not find project web item (ERROR)

旧时模样 提交于 2019-12-11 15:17:36
问题 I am using SmartPart (http://www.codeplex.com/smartpart) to add web parts to SharePoint. When I open the *.ascx file with visual studio it doesn't display the design of the control showing the error however it runs well when it is added to share point. But I need to see the design to be able to add controls through tool box visually not with code. 回答1: Here is How you need to make it open. Create a Normal ASP.NET Web Application. Place the User Control (the control you are using in the