All Questions
Tagged with visual-web-part development
58 questions
0
votes
1
answer
2k
views
Force browser to clear cache when changes has been added or updated in Visual web-part control file
I am working on visual web-part (SP 2016 on-prem) and it's control (ascx) file has HTML, CSS and jQuery code.
When I made any changes inside it, then changes are not reflecting at end user's or client ...
1
vote
1
answer
1k
views
How to add a GridView to a Visual Web Part?
I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero.
In the blogpost the instructor describes adding a GridView to the Web Part, ...
0
votes
1
answer
195
views
Visual Web Part cannot be found or is not registered as safe, and isn't being added to web.config
I'm new to SharePoint development, and I'm making a basic Visual Web Part with Visual Studio 2015, which currently only displays a header. It successfully builds and deploys, however the SharePoint ...
3
votes
1
answer
111
views
Read text file entry in visual web part (C#)
I have a text file with URL & active entry
URL Active
Http:// 0
http:// 1
I want to convert the file to a SharePoint list in visual web part
1
vote
2
answers
1k
views
Get names from people picker and send mail to them by C#
I want to send mail to selected user in people picker control and CC to the his manager. Able to send the email to user. But how to get his manager email Id in C# Web part? Basically How to distribute ...
0
votes
1
answer
32
views
Web-part, search-and-replace function in SP2013
I need to implement web-part search-and-replace function to act on the content of Word docs in a SP2013 library. Any guidance most welcome, its not my familiar environment.
2
votes
0
answers
238
views
Custom webpart cannot load file or assembly
My visual webpart is under the namespace IAA, and under IAA.ExtendedControls I define a few custom ASP.net Control tags to use on my .ascx page as follows:
namespace IAA.ExtendedControls {
public ...
0
votes
1
answer
167
views
Create Sharepoint Site structure dynamically
I want to add a user interface where user create a Sharepoint SiteCollection for each project.
For example we have textbox where we can put a name of the project, it will be also the name of the ...
0
votes
2
answers
1k
views
Get value of PeopleEditor control field in a string
How can I retrieve value of SharePoint:PeopleEditor control in a string programmatically in Server Side Object Model (C#)?
0
votes
1
answer
473
views
How to set Order categories of custom toolpart
I Created Custom WebPart Property for SharePoint Visual WebPart with this code (here - full code)
[WebBrowsable(true),
WebDisplayName("Project ID"),
Personalizable(PersonalizationScope.Shared),
...
0
votes
0
answers
97
views
How to set up alert on team discussion list in following scenario?
I am having the WebPart, which send a email to selected employees. Along with sending email, it is adding a discussion topic in OOTB Team discussion List. Adding this topic against the user to whom I ...
1
vote
0
answers
189
views
How to get distinct users from SPList in c# from list having people and group column?
My Team Discussion list having the column "AppreciatedTo" of type People and Group. Whereas I need to fetch the distinct users in current year (created date also there) in visual webpart in c#. Adding ...
0
votes
1
answer
226
views
SharePoint document library event receiver and WebPart showing items from document library
Preface:
I am trying to develop a wWebPart for displaying items from a document library and let users modify each items metadata. When user updates any documents metadata it will raise an event ...
0
votes
1
answer
302
views
How to change the Theme for Team Discussion in hierarchical manner?
I need to show standard theme for the Team Discussion on my page. Is there any way to change the theme for Team Discussion Webpart?
Also Is there any place where I can get ready-made CSS and themes ...
1
vote
1
answer
142
views
After adding mapped Layout folder in Visual WebPart project showing null reference error in Sharepoint 2010
I wanted to use css file to my visual WebPart. Developing it in VS2012. Initially worked fine without .css after deployment. After following steps here, updated the .wsp. It is also working fine. But ...
1
vote
0
answers
44
views
Set Timeline XML with other Timeline XML
I have two timeline webparts: Source and Destination.
I have to 'export' or duplicate the Source Timeline View in the destination Time Line.
XmlDocument timelineXML = new XmlDocument();
...
1
vote
1
answer
76
views
ObjectDataSource - schema seems cached - unable to refresh
Within a Visual Studio 2012 Visual Web Part, I've created a simple FormView referencing an ObjectDataSource to autogenerate an editable form. Creating this the first time, there was no issue. ...
1
vote
1
answer
92
views
Dynamic translation in SharePoint
I am using a visual webpart to show custom content that I get from a custom web service. I want to translate that custom content dynamically in SharePoint.
Resource file is not an option since that ...
1
vote
1
answer
2k
views
Set DropDownList text and value c#
I am currently trying too develop a visual webpart for an on premise SharePoint environment. The webpart contains a dropdown which I need to set the text and value so that I can use this later as part ...
0
votes
1
answer
1k
views
Display/hide control in Webpart based on edit/browse mode
I have a Visual Studio project in which I have created a Visual Webpart. In the user control I have a panel which I want to display in edit mode and hide in browse mode.
ASP.NET code snippet:
<...
1
vote
1
answer
52
views
Where to store often used class in Sharepoint 2010?
I have a helper class which is often used in number of webparts. The file contains useful methods. Everytime when I create a new webpart in Visual Studio, I need to import this file into the project. ...
1
vote
2
answers
5k
views
get sharepoint DateTimeControl selected date?
currently i m creating Visual web part , with SharePoint DateTimeControl
trying to get select date from DateTimeControl programmatically ..
how to get DateTimeControl selected date value.
0
votes
1
answer
1k
views
SharePoint 2013 C# get all websites and sort alphabetically
I am currently building a visual webpart for an on premise SharePoint farm in C#.
I am currently able to get all of the webs and also get all of the list items within each web, using the CAML Query I ...
0
votes
1
answer
152
views
Cannot deploy visual webpart from sandboxed Sharepoint 2013 solution
I'm trying to deploy a visual webpart to SharePoint 2013 site from sanboxed solution. My webpart RSSNews.ascx (it doesn't have custom code behind):
<%@ Assembly Name="$SharePoint.Project....
0
votes
1
answer
2k
views
Add filter and pagination to CAML query
I'm developing a visual web part for Sharepoint 2010.
I would display all documents from a specific DL, but this DL contains more than 7000 items.
So I would like to add a pagination (show only 20 ...
0
votes
1
answer
211
views
Asynchronus loading of visual web part
I am developing a visual web part that will do some some heavy operations. It is a visual web part in SharePoint 2013, on premise.
I want to load my data asynch. Ajax toolkit is not compatible and ...
1
vote
1
answer
431
views
Adding an item to a List when clicking a WebPart Properties 'OK' button
I have a superb Web Part downloaded from Codeplex which essentially is a Countdown Timer in jQuery. (spCountdown) The code itself works perfectly, however I want to tweak it, in what I thought would ...
1
vote
3
answers
3k
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
2
answers
5k
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
2
answers
692
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 http://...
0
votes
0
answers
353
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
1
answer
42
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
1
answer
1k
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
1
answer
13k
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
3
answers
10k
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
1
answer
165
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
1
answer
142
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
1
answer
6k
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
0
answers
597
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
0
answers
55
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
Get Property
Set Property
Add Property
And I want to know if it's possible to use these to add a number to the ...
0
votes
1
answer
294
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
1
answer
233
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 ...
3
votes
1
answer
11k
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
1
answer
95
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
2
answers
247
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 behind.
...
2
votes
1
answer
1k
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
2
answers
2k
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
1
answer
1k
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
1
answer
406
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
2
answers
4k
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 ...