0
votes
3answers
41 views

Changing visibility of text/controls in a visual web part

I need to show/hide a section of text and controls in a visual web part when a button is clicked. I've seen references to doing this via JS but can't connect the dots for how to integrate that into ...
0
votes
2answers
45 views

SPUtility Send Email for mulitple users

I am trying to send an email to multiple users using SP Utility Send Email I am using visual studio, c# But i am facing issue, as i am trying to specify email addresses as a ,b Should i be using ...
0
votes
2answers
101 views

Custom webpart to display HTML form which supports adding additional dataRow on the fly?

Would like to build a WebPart which will display an HTML form(allow the users to add the data rows as many as required) and will insert the data into the SharePoint list on the submit (based on ...
0
votes
0answers
82 views

Fire events on TIME changed in date picker

I am making a visual web part that has a date and time picker. Essentially, I would like the first of two date pickers to update the second date picker as long as the second one has not been modified ...
0
votes
1answer
35 views

SP 2010 Development Concepts

I'm building a custom addon for a SP 2010 instance. I've been able to get a Visual Web Part in visual studio deployed to my SP instance and debug it. As far as I can tell I have all the normal ...
1
vote
1answer
616 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
0
votes
1answer
3k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
3answers
1k views

How to get a creation date from a SPListItem that is a folder in c#?

I am making a visual webpart in SP 2010, and I download the SPListItems from a document library. I need to get the creation date of all the documents and folder items. I can do it successfuly for ...
0
votes
1answer
90 views

SharePoint 2010 Visual Web Part development @_parser.AddParsedSubObject LiteralControl WebPartPageUserException

I am using SharePoint 2010 Foundation on a vmware virtual machine. I am using Visual Studio 2012 update 3. I am working on a visual web part project. I have so far in this project only used asp.net ...
0
votes
1answer
81 views

How to detect if the user exited page edit mode?

I am making a visual web part for SP2010, and the webpart hides shows content depending on if there was a postback or not. However the only exception to this, is the postback of exiting the page edit ...
2
votes
1answer
1k views

How to check if user has read/write permission for a SPListItem in c#?

In my SP2010 visual webpart, I am checking permissions with the code below. Basically the current user is either an admin or a regular user. If they are an admin, they need to have permission to edit ...
0
votes
0answers
295 views

Getting error when doing a jquery ajax funtion to a webpart aspx page

I want to send data using ajax from jquery to c# (note: im sending request to the same page). I am following this tutorial http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/. ...
1
vote
0answers
41 views

SP2010 - Visual Web Part - Storing metadata in folders in document libraries

I want to store a number to folders to enforce ordering. I noticed these three pages http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.getproperty.aspx ...
0
votes
1answer
118 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
0
votes
1answer
98 views

Pass user credentials to JSP website from SharePoint website

I have developed a JSP website. I also have a SharePoint server based website. Let's call my JSP website to be www.xyzjsp.com and my SharePoint based website to be www.mySPwebsite.com How can I ...
0
votes
1answer
1k views

How do I get the list item ID of an item I just created in a Visual Webpart

I have a visual webpart which creates a list item, but I need to reference the newly created item's ID for later use in the same webpart. How would I do this in C#? Thanks
2
votes
1answer
66 views

How to Retrieve the Data from an Individual Blog Post

I am trying to brand a blog post according to our standards, and to do that I have simply created a custom visual web part to take the place of the SharePoint default. What I am wondering is how am I ...
0
votes
2answers
116 views

get string from another method after setting it with SelectedIndexChanged event of asp-net dropdown

So I'm creating a contact form for my event management system at the moment. I've got a Visual Webpart including private string selectedEmail; as a variable after declaring my class in code ...
2
votes
1answer
478 views

Send emails to multiple recipients via contactform webpart

Happy new year everyone, so I'm creating a contact form webpart for my event management system at the moment which has a checkbox "send to all attendees". I'm using the SPUtility.SendEmail method to ...
1
vote
2answers
945 views

Show User List (GridView?) on Button Click in new Popup

Hi there and thanks in advance :) So, my use-case is: I have a visual webpart on top of the DispForm.aspx of a custom list for events. I have another List called "Attendee List" where attendees are ...
3
votes
1answer
627 views

Show asp.net webpart elements based on user permission level?

I want to do the following: I have a webpart and two users (not in groups, though, because for a reason I don't understand there are no groups in the productive environment here ;) ). One stands ...
0
votes
1answer
233 views

Setting a Lookupfield for current Item in List

my use-case: I'm trying to implement an event-management system to sharepoint using visual web part(s). I have two custom lists, one is called "events". Let's say it has a column "Title" which shows ...
2
votes
1answer
731 views

Visual Web Part vs Visual Web Part (Sandboxed)

While I was creating a visual web part in Visual Studio 2010, I also saw an option to create Visual Web Part (Sandboxed) under Visual Studio Template Gallery. I need to know how does a Sandboxed ...
1
vote
2answers
733 views

Couldn't find any way of displaying a message box in Visual Webpart 2007 (User Control)

I almost tried everything I could to display a nice message box in user control (.ascx) or code behind, but I failed miserably, Can anyone find me a tutorial in context to what I need and will 100% ...
0
votes
2answers
165 views

XmlFormView and QueryStringFilter

I'm working on a project to automatically generate some document libraries and pages. One of these pages I have to put a infopath form webpart and a TextFilter to send to this form some information (a ...
2
votes
5answers
1k views

How to detect where a memory leak is in my application?

I have a web part that loops through web apps, sites, and webs. I'm using DoesUserHavePermissions() to check whether or not the user has access to the site. I'm getting an error and I've made sure to ...
0
votes
2answers
54 views

Not able to add webpart to page using chrome

I created a visual webpart for SharePoint 2007, now I am able to add it to page using Internet Explorer but when I try to add it to page using chrome it doesn't add it or do a page refresh, I followed ...
2
votes
2answers
764 views

sharepoint webpart property disappear after a day (C#)

I developed a custom webpart with a webpart property with some textboxes and it works partially. If I deploy the project, the written text in the property is away. This is ok. But my MAIN Problem ...
1
vote
1answer
1k views

Causes of “The Web Part you are connecting from does not allow authoring of connections”

When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is ...
1
vote
1answer
252 views

Display the actual attachments(Image) in Announcements list?

I have a custom web part on my home page pulling data from the announcements list. When a user clicks on the Title (I have created it as a link) it directs to this page: I would like to modify the ...
2
votes
1answer
2k views

Visual Web part - async load

I want to create async load of visual web part. Code behind (web part) needs some time to load data so I figure to create that in async way (on page load). Scriptmanager is placed in master page (ajax ...