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

learn more… | top users | synonyms

-1
votes
1answer
89 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
1k 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
370 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
386 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
78 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
504 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
264 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
168 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
519 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
221 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
85 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
969 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
62 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
92 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
160 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
438 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
97 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
393 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
870 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
379 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
2k 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
327 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
803 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
502 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
39 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
2answers
361 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
103 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
784 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
59 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
793 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
529 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
1k 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
279 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 ...
0
votes
1answer
204 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 ...
3
votes
3answers
1k views

How to create and write xml file in sharepoint layout folder using visual studio(Programatically)

How to create and write xml file in below url using visual studio(Programatically). web.Url + "/_layouts/MyPoject/Generated.xml" I want to generate xml programatically inside MyProject Folder. ...
0
votes
1answer
296 views

Filter Parameter from Visual Web Part to XSLT or DataForm Web Part

I have a scenario where from Visual Web Part I need to send filter parameter to XSLTListView or DataForm Web Part on the same page! If I use Query String then I need to Response.Redirect and that will ...
2
votes
1answer
492 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 ...
1
vote
1answer
225 views

Change Sharepoint Calendar View from month to day

How to change calendar view from month to day on button click event without ribbon ?
1
vote
2answers
606 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% ...
4
votes
2answers
7k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
0
votes
1answer
220 views

Adding style sheet to feature

I have created a feature in sharepoint 2010. The feature has a visual web part (sandboxed), the web part has controls etc. I have added some styles to the web part. How do i upload the stylesheet ...
0
votes
2answers
136 views

XmlFormView and QueryStringFilter

I'm working on a project to automatically generate some document libraries and pages. One of these pages I have to put a infopath form webpart and a TextFilter to send to this form some information (a ...
0
votes
1answer
332 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
3k 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 ...
0
votes
1answer
148 views

How to show documents in a webpart like Sharepoint does?

I have this Visual Web Part that make a request to a WCF service and returns a list of Sharepoint documents. Currently I'm showing them in a <ul>, creating the HTML in the succeded ajax event in ...
1
vote
1answer
388 views

Call Javascript on Sharepoint Calendar add button Click

How to call JavaScript in SharePoint Calendar Add Button Click event ?
2
votes
3answers
2k views

How to change active directory password from webpart?

How to change active directory User Account Password using code?
-1
votes
1answer
631 views

Consume a WCF REST Service with webHttpBinding in Sharepoint 2010 WebPart

I have developed a custom WCF REST service with webHttpBinding in VS2010 and trying to consume in SharePoint 2010 WebPart developed in VS2010. I don't know how to do the settings. Please help! Please ...
2
votes
3answers
755 views

Retrive data using Caml Query Join Operation

How can I retrieve data from two SharePoint List using Join CamlQuery ?
1
vote
1answer
159 views