10
votes
3answers
2k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
0
votes
1answer
86 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 ...
1
vote
0answers
40 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
3answers
2k views

How can I access Controls in VisualWebPart1.cs from UserControl.ascx

I make a Webpart and want to use the controls from the VisualWebpart1UserControl.ascx in the VisualWebpart1.cs. Is this possible? I wrote following code in the VisualWebpart1.cs: ...
1
vote
2answers
687 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
1answer
404 views

How do i add a UserControl to a VisualWebPart (sandboxed)

I have installed Visual Studio power tools so that i can add Visual Web Parts. This all works fine, i can deploy Visual Web Parts etc. I now want to create a UserControl in my solution which i can ...
1
vote
2answers
4k views

Can a user control be added to a Visual Web Part?

Can i add a user control to a Visual Web Part (in visual studio) in sharepoint 2010? I have a user control which has content that i want placed on most of my visual web parts. Has anyone got any ...
1
vote
2answers
2k views

SPCalendarView control, same events are displayed each month in a VisualWebPart UserControl.ascx.cs file

I am creating a custom SharePoint Calendar to pull from multiple SharePoint Calendar Lists. In the markup I have the following: <SharePoint:SPCalendarView ID="EventsCalendar2" width="100%" ...
0
votes
1answer
591 views

Custom link button - image dissapearing after updatePanel reload

I created a custom link button control so it can display also an image. Code below: namespace SharepointTools.Controls { [ToolboxData("<{0}:CustomImageButton ...
1
vote
1answer
2k views

SharePoint 2010 : Visual Webpart - Multiple User Control

SharePoint 2010: Visual Studio 2010 I have requirement : i have one web part and using custom web part property i load 4 different user control. Solution 1 : I created web part and using custom web ...