Visual Web Part is a Web Part built using a User Control (.ascx)

learn more… | top users | synonyms

1
vote
0answers
294 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 ...
3
votes
1answer
262 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
1answer
67 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
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
1answer
95 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 ...
1
vote
1answer
343 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
2answers
7k 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
295 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
324 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?
1
vote
2answers
1k 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
42 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
141 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
91 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
319 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 ...
1
vote
1answer
95 views

Duplicated datatable showed to all users

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 static datatable which in turn ...
6
votes
1answer
200 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
189 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
119 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
2k 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
437 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
432 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
1answer
82 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
628 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
298 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 ...
3
votes
0answers
182 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
951 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
270 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
88 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
1k 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
65 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
93 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
169 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
544 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
112 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
453 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
1k 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
432 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 ...
4
votes
1answer
3k 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
390 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
968 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
4answers
581 views

Issue with Sharepoint DateTimeControl

DateTimeControl is inside grid and I bind the grid inside !ispostback section, on row databound of grid I find that datetimecontrol and disable it. When button click event (outside of grid), the ...
0
votes
1answer
43 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, ...
1
vote
3answers
479 views

Jquery clickable Tooltip inside SharePoint WebPart

I have a requirement in which when ever user hover over a text(hyperlink) a tool-tip should appear that should contain images which are clickable using JQuery $('.cover_beholder').hover( function ...
0
votes
1answer
111 views

Link in a visual webpart sharpoint 2010

I am working on a internet site which has all the best practices used in it. I have a simple task but want to make sure that i also use the best possible solution. The requirement is that i have to ...
1
vote
2answers
1k views

Send alert notification when particular field is changed

How to programatically send alert notification to a particular user when a particular field has been changed?
0
votes
2answers
66 views

Getting value on a custom webpart from another custom webpart on a page

We have a SharePoint page which contains one visual webpart(vw1) which is displaying few values(id,name,address) on it. Now i need to add one more custom webpart(vw2) and which should get the value ...
1
vote
2answers
888 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
597 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
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
0answers
332 views

Getting exception while save linq query result into ViewState

Following is the code SPList splist = web.Lists["MyList"]; var query = from SPListItem oItem in splist.Items.OfType<SPListItem>() where ...