Visual Web Part is a Web Part built using a User Control (.ascx)
0
votes
0answers
11 views
link two ascx controls
I've created a visual webpart using template from VS2010. The 1st control displays a list of items using a dataview. For the details page I added to the same project another control which produced an ...
1
vote
0answers
26 views
CreateChildControls() in Visual Web Part in SharePoint 2010 called twice
(x-post from http://stackoverflow.com/q/17065543/1943)
I have a Custom SharePoint 2010 Visual Web Part which I've realized is calling the CreateChildControls() method twice. I've tried setting the ...
2
votes
1answer
18 views
Create Password Field in webpart properties
I have created a custom web-part. this web-part have a custom web-part properties. i want a Password field in this property.
How can i do this ?
Any help will appreciated ..
0
votes
0answers
30 views
Sandbox Visual Webpart Not Adding BulletedList Control
I have a sandbox visual webpart (got it by installing SharePoint Power Tools) and in that I have a "Place Holder" control named "phMsg". I am adding a "BulletedList" control to that place holder in ...
1
vote
0answers
15 views
Issue between user control and Visual webpart
I have user control in my master page (countrycontrol.ascx) on clicking the user control It will show links, user is allowed to select the country based on the selected country the visual webpart need ...
0
votes
1answer
26 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
0answers
48 views
Error:- The name 'Request' does not exist in the current context
I have added a web part in a farm solution:-
using System;
using System.ComponentModel;
using System.Web.UI.WebControls.WebParts;
namespace SharePointProject5.nv
{
[ToolboxItemAttribute(false)]
...
1
vote
1answer
31 views
Set Web Part Recommendation Settings in elements.xml or .webpart file
Is it possible to set the Recommendation Settings of a WebPart in the elements.xml or .webpart file? Just like you can do with Group, Title and Description...
0
votes
1answer
137 views
How to add jQuery script to a custom visual webpart?
Similar to some previous questions, I'm trying to use jQuery in a visual web part but I keep getting that jQuery is undefined. I've added the jQuery script to SiteAssets as well as a script folder ...
1
vote
1answer
40 views
Can I use a .net 4.0 dll assembly reference in a .net 3.5 sharepoint web part?
I am using some dll's from the crm 2011 sdk in a .NET 3.5 web part.The target is for SharePoint 2010 online. When I try to build it gives me the following error:
The primary reference ...
1
vote
1answer
187 views
I want to make a weather webpart that displays temperature by using Api like Google or yahoo
I want to make a Weather web part form any api. I have searched on Google but could not find any good solution. So, any link or suggestion or steps for that?
0
votes
0answers
40 views
simple visual webpart, is not rendering the controls
I created a simple visual webpart with this html
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LinkButton.ascx.cs" ...
0
votes
2answers
44 views
Add visualwebpart with vs2012 does not add an ascx path
I am making a visual webpart with custom properties. Basically its a link button which Text and Url properties can be set by the user via web part properties.
All samples I have seen say that in vs ...
0
votes
2answers
40 views
Using sharepoint 2010 on another server in VS?
How can I use sharepoint 2010 that is on another server in VS?
When I try to create a new project for creating visual web part, A message "Sharepoint not installed on this client" is showed.
0
votes
1answer
36 views
display Multi parents-childs dynamic Diagrams in sharepoint web access
We design KMS (Knowledge Management Systems) with SharePoint that everything is OK but we need to Display relations between entities,Documents and etc. in Web access.
my question about solutions: ...
1
vote
0answers
22 views
Import Error on ChartDataProvider Webpart
My Sharepoint project contains a visual Webpart which retrieves data and works fine.
In addition to that, I want to display some Chart webparts which visualize this data.
In order to do so, i added a ...
0
votes
1answer
39 views
2007 templates broken in 2013
We're upgrading to SP2013 from 2007 and using 2010 as a stepping stone for the DB upgrade.
(This is all out of production, we're building a plan to do production)
The problem we're having is that many ...
0
votes
1answer
42 views
Duplicated datatable showed to all users
Maybe a noobie question but...
I'm trying to code a visual Webpart in sharepoint2010 where users can fill out a form to order meals, you can order meals for several persons at once.
The form fills a ...
6
votes
1answer
120 views
Protect wsp file from Reverse Engineering
How to protect wsp file so no one can read my source code. When we change wsp file extension from wsp to zip, it gives all dll file and this dll can be extracted from .net reflector and get all source ...
0
votes
1answer
58 views
How to use dynamic or relative path in SPList object?
I am using the following code to read a picture library:
SPList list = SPContext.Current.Web.GetList("http://win-12/sites/mysite/ImageLibrary")
Problem is, in above code "win-12" is my machine name ...
-1
votes
1answer
27 views
How to access Literal conrol from Visual Web Part code file
I have added a literal control in my visual web part VisualWebPart1.ascx file as follows:
<asp:Literal id="slider"></asp:Literal>
I am trying to access it in VisualWebPart1.ascx.cs file ...
1
vote
1answer
103 views
Visual WebPart does not recognize tag for resources
I created a visual webpart from VS2012. The headers of the ascx page are
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, ...
1
vote
1answer
187 views
need to display image of the user in the people picker, Sharepoint 2013?
In the people picker, the attributes it shows are name,designation and their online or offline status, Is it possible to display the image of the person?
0
votes
2answers
139 views
Users can't see css on my visual webpart
I'm trying to add some css on my webpart for the first time in SP2010. But for some reason the css only works when you visit the site on the sharepoint server. I belive it's the href path because it ...
0
votes
0answers
23 views
Visual WebPart not showing in FeatureList
I have created a Visual Web Part in VS2010 with SPmetal-generated Entities and a repository.
This is the code in the Page_Load()
var _repository = new ITStatistikenVWP.TicketsystemRepository();
...
0
votes
0answers
40 views
How can I use the controltemplates of 14Hive in UserControl of SandBox solution?
How can I use the following control in my SandBox solution of Visual WebPart(Sandboxed),
"<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" ...
0
votes
0answers
47 views
Use the default RTE of the sharepoint ribbon with a textarea in a visual web part
I'm trying to use the default rich text editor in the sharepoint 2010 ribbon to edit a text area I have placed inside a custom visual web part (created in visual studio 2012). I have tried using :
...
0
votes
1answer
37 views
Member Variable / public property null on postback
I have a sandboxed visual web part (created in VS2012) when I initially load my web part and its child controls I set myProperty to a value retrieved from the database. When I fill out the relevant ...
1
vote
1answer
280 views
How to deploy SharePoint 2010 Sandbox solution on SharePoint 2013 Office 365
I have developed a SharePoint 2010 Sandbox solution in Visual Studio 2012 which has been deployed on Office 365 SP2010. The solution contains custom lists, visual web parts and workflow activities.
I ...
0
votes
2answers
115 views
Sharepoint 2010: Saving content of a textbox back to a variable of a visual web-part
not sure if this is even possible. What I'm trying to do is create a visual web-part for SharePoint 2010 (using Visual Studio 2013) that will allow the user to add the web-part to a page then add data ...
2
votes
0answers
77 views
Change month in SharePoint MonthlyCalendarView control
How to change month in SharePoint MonthlyCalendarView Control? It seems, there is no way to change month in calendar or change view of calendar.
0
votes
1answer
70 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
0
votes
1answer
112 views
How to make different permission on document library?
I want to make document library that can filter view from the user organisation by region. In my Institution has 3 levels that has different level of access file.
The hierarchy of user level can be ...
1
vote
1answer
57 views
WebPart on Top of Displayform for Custom List, ListItem deleted => Server Error
so I have a visual webpart for registering/unregistering for an event on top of a custom lists' ("events"-list) display form (added via &ToolPaneView=2).
Now my use-case is this: potential ...
1
vote
2answers
386 views
VS2012: Visual Webparts Properties not showing?
I've created a Sharepoint 2010 Visual Webpart in Visual Studio 2012. The structure of the template that it generates is slightly different than in VS 2010. Previously, it would create the Webpart ...
2
votes
1answer
40 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 ...
1
vote
0answers
57 views
Nested UserControls in Sharepoint 2010
I have a webpart A and have two user controls UCA and UCB
When I try to use UCB in UCA and use UCA in WPA, I get this in my InnerException
The referenced file '/ControlTemplates/xxx/UCB.ascx' is not ...
3
votes
1answer
139 views
Why Microsoft.SharePoint.WebControls over System.Web.UI.WebControls? [closed]
I am building visual web parts for SharePoint 2010 Foundation, using ASP.NET 3.5 in Visual Studio 2010. For those who are new, these are like making a custom "normal" .net control that you can drop ...
1
vote
1answer
253 views
Custom Web Part Properties in SharePoint 2010 Visual Web Parts-Dynamic Dropdown
I want to have a custom webpart property with a dynamic dropdownlist (data coming from sharepoint list).
I was able to make a static dropdownlist as mentioned here.
Can anyone help me how to make a ...
0
votes
2answers
67 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 ...
0
votes
1answer
146 views
Getting exception when removing all list items? [closed]
Getting exception when removing all list items?
How to remove pragmatically ?
i'm new to sharepoint...
Thanks
0
votes
0answers
173 views
Update Panel Error on Adding Report Viewer Control Dynamically SharePoint 2010
I am trying to add report viewer control dynamically on my visual web part (on ascx control).
The code I am writing is on PreInit event and creating an instance of Report Viewer Control and adding it ...
2
votes
1answer
264 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 ...
2
votes
1answer
383 views
Adding Report Viewer Control on Custom Web Part ASCX Control
I am trying to use Report Viewer control in one of my custom web part (on ascx) of SP 2010. As I drop the report viewer control on my ascx it register its assembly on top with assembly version ...
3
votes
4answers
297 views
Problem with Visual web part
Good day! I have an event handler that, when you add a document to the library redirects the user to a web form with the parameters of the document. In the web form, it displays the current user in ...
0
votes
1answer
667 views
How to get Attachment URL Programatically From Sharepoint ListItem?
How to get Attachment Full URL Programatically From Sharepoint ListItem?
Explanation:
I have adding new item with attachment.
Now i have to bind that attachment link to grid.
When click on that link ...
1
vote
2answers
235 views
Event Receiver redirect to Visual web part
Here is my Event Receiver to redirected to my visual web part:
public override void ItemAdding(SPItemEventProperties properties)
{
base.ItemAdding(properties);
properties.Cancel ...
2
votes
2answers
400 views
How to set visual webparts to load one after - another sharepoint 2010
I have a webpart page which have 2 custom visual webparts. When i set the debugger point on both the page loads of the webpart the 2nd visual webpart debugger is hit...that makes me think the 2nd ...
2
votes
3answers
350 views
Issue with Sharepoint DateTimeControl
DateTimeControl is inside grid and i bind grid inside !ispostback section, on row databound of grid i find that datetimecontrol and disabled it.
when button click(outside of grid) DateTimeControl ...
0
votes
1answer
27 views
Content Query Crazy behavior
I have a custom webpart that works like a carrousel, just showing images... im having problems because when the site is acessed via https the images just dont show...
the images are not hardcoded, ...

