Tagged Questions
0
votes
1answer
43 views
Update Panel in web part not working in Google Chrome
I have written a visual web part for SharePoint 2013 in VS2015. The web part contains a number of asp controls as well as a grid view. I implemented AJAX with using script manager proxy and update ...
0
votes
1answer
95 views
Access Webpart properties from a custom class in Kentico
I have a Webpart called OverrideMacros.ascx and a public property called "MetaTagReplace"
public partial class CMSWebParts_VLine_Management_OverrideMacros : CMSAbstractWebPart
{
protected void ...
0
votes
0answers
21 views
WebParts menu not displayed
I trying to use WebPartZones. I create default webPartManager and 2x WebPartZones with buttons. The problem is "small arrow". i cannot set for e.g "close" for webPartZone. There is a image
link ...
0
votes
0answers
13 views
SharePoint Visual Web Part generate random number unique number every page refresh
I am developing a visual web part for SharePoint 2013.
I have a function that is generating random number that will be used as index to take random item from a collection. I am using below code to ...
0
votes
0answers
31 views
How can I add a CSS file to a WebPart in SharePoint 2013
I am trying to add programmatically some style to my Custom Web Part in SharePoint 2013. I have added a CSS file in the project in ProjectName/fileName.css and I used in Page_Load method ...
0
votes
1answer
52 views
How to launch DropDownList SelectedIndexChanged event only if clicked on spicified button?
So. I'm generating a lot of DropDownLists on page. Page has a 2 Views, first has this DDLs that can be changed, second view is doing some other things and user can change this views.
Because DDLs are ...
0
votes
2answers
14 views
ASP.NET SharePoint web part: Showing subsites calender events in root site calender
I have for testing purposes a sitecollection called BigBroSite. Under the root site i have three subsites called Support, Development and Marketing. On each of the subsites I have a calender app with ...
1
vote
1answer
188 views
Button click event not firing in user control, created dynamically in another user control
I have visual web part and two usercontrols.
On Page_Load() of visual web part i dynamically create userControl1:
protected void Page_Load(object sender, EventArgs e)
{
UserControl1 userControl = ...
0
votes
1answer
13 views
How to get object of PersonalizationProvider of WebParts in ASP.NET?
There is SqlPersonalizationProvider and I have also defined other CustomPersonalizationProvider In the page where I have multiple webparts, I need to have functionality to reset the state of Webparts ...
0
votes
0answers
339 views
Element 'usercontrol' is not a known element -Sharepoint Webpart
I am trying to insert a user control into a Sharepoint Visual Webpart.
It doesn't even work with an empty webpart project. I get this erro plus the ''initializeControl' is not declared'
Both the ...
4
votes
2answers
376 views
How to fix freezing page after file download?(TransmitFile in TreeView SelectedNodeChanged)
So I know that this is common problem, page freezes (any buttons visually are clickable but doesn't perform any action) because it doesn't close some request after file download.
System.Web....
0
votes
1answer
264 views
Error in Production Application SharePoint
We have SharePoint application running perfectly finr on production since long however from today we are getting error on production on one page , I have traced the log via sharepoint logviewer on ...
0
votes
1answer
92 views
Dropdownlist issue when clicking back on Google Chrome
I have a webpart with 3 dropdownlists. The 2nd and 3rd ones are dependent on the 1rst one (the options will change depending on the option selected in the 1rst ddl). All 3 dropdownlists have disabled ...
0
votes
1answer
53 views
Update WebParts through callbacks
I have a page which can contain many WebParts. Each of those WebParts is contained inside an ASPxCallbackPanel from DevExpress so they can load asynchronously, and the user experience doesn't get ...
1
vote
0answers
111 views
Conditional visibility of a custom property in visual WebPart SharePoint
I am editing some feature of a SharePoint visual webPart and I need to add on custom text box property which needs to be appeared if user choose one specific value from another drop down property. I ...
0
votes
1answer
421 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:
<...
0
votes
0answers
43 views
Can we add custom validation to Editor Part Property?
I have Appearance Editor Part in my application. I have an requirement like i have to include a custom validation like required field validation to the Title Property of Appearance Editor Part. How to ...
3
votes
1answer
11k views
How to embed SharePoint 2013 webparts directly in aspx layout page as default webparts for that layout
I am using SharePoint 2013, and have a custom master page and several aspx layout pages all of which to be deployed get copied into the "Master pages and page layouts" section within Site Settings.
...
1
vote
0answers
71 views
SharePoint Form Web Part ContentPlaceHolder
I am attempting to create a SharePoint webpart for my Sharepoint online intranet. Code seems to be fine aside from it cannot find my ContentPlaceHolderID in the master page or pages.
"Could not find ...
1
vote
0answers
278 views
How to enable personalization and edit configuration in IIS for web parts in Asp.net
I was trying to create a web part and I followed all the steps that are given in this link
The problem:
I get below error displayed in my browser after executing that web part.
Personalization is ...
0
votes
2answers
146 views
How can I reduce the width of an HtmlTableCell or otherwise join together two controls in an HtmlTableRow?
I am dynamically creating several HtmlTableRows and adding cells to them, like so:
HtmlTable dynamicTable = new HtmlTable();
. . .
// Create row 6
var row6 = new HtmlTableRow();
var cellLitCtrl_6 = ...
0
votes
1answer
67 views
generating dynamic click event in code behind
I am generating dynamic html in my visual webpart in sharepoint.
htmlString = "<a href='#' onclick='updateAge(" + itemId + ")'>";
I want to write click event in code behind in c# for the ...
0
votes
1answer
85 views
Why is OnPreRender being called over and over again?
In my Sharepoint 2010 WebPart, I have this code:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (this.dpsvisWebPart != null && this.dpsvisWebPart....
0
votes
1answer
1k views
SharePoint 2013 web part button click event not firing
I am building my first Hello World Web part using the Cloud 9 videos as tutorial.
I am using an Azure VM with SharePoint 2013, SQL Server 2012 and VS Premium 2013 Update 4.
The Web part is a simple ...
0
votes
2answers
1k views
Sharepoint “edit page” keeps loading due to certain webpart
I have a sharepoint test page. I inserted my webpart earlier before my development, but after a period of time now I find that when I click "edit page", the "loading" tag will run forever and I ...
1
vote
0answers
204 views
SharePoint How To display content type form dynamically
I have an asp drop down list in a WebPart that contain list of document Library content types.
when i choose a content type i need to display the fields of these content type to create new item from ...
2
votes
1answer
292 views
Update Panel posts back after a period of inactivity
I have a asp.net user control in a SharePoint solution. This user control uses Telerik Asp.net Ajax controls to provide a basic datagrid CRUD operations. I use this grid in a web part on a page in ...
0
votes
1answer
139 views
read SharePoint list field titles
I have created visual web part in visual studio 2013. I want to read
list field title
list data
I am reading first list field title correct rest are random numbers, I am not sure where I am doing ...
0
votes
2answers
564 views
Delete TextBox Text value when DropDownList index changes
I have a web part with a quite long form, but for the example, let's only use the DropDownList (DDL) and TextBox (TB). I would like to remove the value of the TB when the DDL's index changes.
Ascx ...
0
votes
1answer
224 views
Get the UNC of a file that the end user selects
I am trying to create a Sharepoint webpart for a user to browse to, and select, a file from a share on our file server. Then I need to create a link to this file to display in a list of links that ...
0
votes
0answers
448 views
Button onClick event only fires on first click
I am trying to develop a visual webpart in SharePoint 2013 , I just have an asp button on the web part and it works fine on the first click but does not do anything on second click.
below is my ...
0
votes
1answer
545 views
jQuery Tabs not showing the Asp Panel inside the selected Tab on PostBack
Here's the story:
I have 2 update panels. UpdatePanel 1 has a dropdownlist that has its own functionality. UpdatePanel2 has the Divs for the jQuery Tabs functionality.
Here are the code snippets:
...
0
votes
1answer
764 views
Sharepoint 2013 Connect Search Box Web Part (Provider) with Custom Web Part (Consumer)
I need to use connected WebParts to build a custom webpart that gets data from the search box WebPart on the search results page. Which, from exporting it, I think it's this class: Microsoft.Office....
0
votes
1answer
226 views
Upload a file via form to share point list
I am creating a visual web part to allow users to submit a form which would allow them to upload a document into a sharepoint list. My issue is uploading that document into the list. I am using the ...
1
vote
2answers
1k views
Call code-behind function from javascript in visual webpart
Is it even possible? To call a code-behind c# function from javascript in a visual web part?
It is a complex function so converting all my codes to client side is not an option. I want the logic that ...
1
vote
0answers
255 views
Add DiscussionsList app to default.aspx in SharePoint 2013
I'm trying to add the SharePoint DiscussionsList app to a site defintion. According to him this is how it is done.
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Left" Title="...
0
votes
1answer
199 views
SharePoint 2010 Web Part that needs to call a dll and .js files
I am trying to create a SharePoint 2010 web part. The web part I am trying to create will contain, amongst other things, a custom asp.net server control as a dll. The dll refers to a number of files ...
0
votes
1answer
582 views
GridView SelectMethod Issue With WebPart Sharepoint 2013
Hi every one ,
I have a problem with a gridview in webpart sharepoint 2013 ,I use model bind with the gridview and I have assigned a select method to the gridview when I deployed the webpart it raise ...
3
votes
1answer
440 views
Add Custom Property in WebPart Editor Zone
I have webparts which display the content.
Using Webpart Editor zone I need to select display style.
By Selecting the Style i need the data to be displayed either in Grid or List or Rolling (from ...
-1
votes
1answer
709 views
using jquery validate plugin in asp.net controls not working
I am trying to use the jquery plugin validate() method to validate a div in my current sharepoint visual webpart.
I am not sure why this is not working. it does nothing at all.
Here is the code.
...
1
vote
0answers
371 views
Calling a server side function written in webparts using ajax call in javascript
I am using the below javascript function to call a function placed in a webpart file in my solution using ajax.
Mainly, I am using webparts for my UI and controls are defined in the htm files and the ...
0
votes
0answers
67 views
Why don't my webparts show?
I have been following a tutoral on webparts here:
http://www.codeproject.com/Articles/337551/A-Beginners-Tutorial-on-ASP-NET-Web-Parts
And followed it example and copied the code across into my ...
0
votes
1answer
925 views
What is the best was to access a property of a deeply embedded asp.net control using client side java script?
I could use some advice please.
THE SCENARIO
I have a tabbed control on the page.
There an update panel on each tab.
Inside each update panel is an instance of a custom Web part (asp.net)
I ...
0
votes
1answer
280 views
Why some div content is missing from ZoneTemplate in asp.net webpart?
Here is my code:
<asp:WebPartZone ID="Zone1" runat="server" Width="100%" PartChromeType="None" Padding="0" PartStyle-CssClass="NoPadding"
PartStyle-BackColor="Transparent" ...
2
votes
3answers
14k views
Custom visual web part properties sharepoint
I'm having trouble creating visual web part properties in visual studio 2012..
I was refered to http://msdn.microsoft.com/en-us/library/ee231551.aspx, but then was unsuccessful..
looked in the Web ...
-2
votes
1answer
317 views
How to apply script on a tool part of a web part? [closed]
I am trying to apply Java-script on tool part of a web part in sharepoint in order to restrict a user from entering any character other than numerics. I've found a suitable script on this link
I can ...
1
vote
2answers
402 views
Is there any alternative for Webpart in ASP.NET to create Drag an Drop-able Content, or any mix with Jquery..?
I'm currently using the WebPartManager to make my content a drag n drop kinda work using the " WebPartManager.DesignDisplayMode " ,this would make the content drag n dropable , but the alignment of ...
0
votes
1answer
489 views
create custom sharepoint calendar webpart with data from a WCF service
I am fairly new to sharepoint. We are trying to create a custom calendar web part for our sales team to display their itinerary from an external WCF webservice. The calendar will look just like ...
5
votes
1answer
987 views
SharePoint 2013 Updatepanel Idle
I have implemented AJAX update panel on my SharePoint visual web part. The web part contains two dropdownlists and and a grid surrounded by update panel.
The page is working fine in Chrome/Safari/IE ...
0
votes
0answers
264 views
How do you create a dynamic SharePoint Web Part
I am trying to create a Web Part for Share Point in C# which displays images in a slide show style sliding from right to left. I know there are Web Parts you can download but i need to write my own. I ...