Visual Web Part is a Web Part built using a User Control (.ascx)
0
votes
1answer
156 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 ...
2
votes
3answers
421 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
0answers
59 views
How to display total in grid view, while exporting to excel?
While exporting to excel? In my page, i have added one visual web part, In that web part there is two text boxes are there. I need to export those "text boxes" data in excel. (billable and non ...
0
votes
1answer
211 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
154 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
153 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
317 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% ...
2
votes
2answers
2k 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
126 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
1answer
72 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
123 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 ...
0
votes
1answer
826 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
103 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
305 views
Call Javascript on Sharepoint Calendar add button Click
How to call JavaScript in SharePoint Calendar Add Button Click event ?
2
votes
3answers
294 views
How to change active directory password from webpart?
How to change active directory User Account Password using code?
-1
votes
1answer
405 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
502 views
Retrive data using Caml Query Join Operation
How can I retrieve data from two SharePoint List using Join CamlQuery ?
1
vote
1answer
78 views
0
votes
1answer
74 views
Manage photo in sharepoint 2010
I have a list for students. I want to keep photos of each student. How can i do this? Do I need to add a field to Student custom list? Please help me with correct approach. I am using a visual webpart ...
0
votes
1answer
245 views
In sharepoint 15, How do I use the person field in a custom web part?
Sharepoint 2013 gives a pop up when the cursor is kept on top of a users name ( the pop up allows to connect to email, lync, etc)
I need to add that field in my custom webpart... Is there any way ?
1
vote
3answers
116 views
how to detect where a memory leak is in my application
I have a webpart that loops through web apps, sites, and webs. I using the DoesUserHavePermissions() to check whether or not the user has access to the site. I'm getting an error on this line. I've ...
0
votes
2answers
46 views
Not able to add webpart to page using chrome
I created a visual webpart for SharePoint 2007, now I am able to add it to page using Internet Explorer but when I try to add it to page using chrome it doesn't add it or do a page refresh, I followed ...
1
vote
1answer
478 views
Use a querystring parameter in a CAML Query
I want to pass a parameter between two separate web parts I am developing. In my 'Detail' webpart i need to build a CAML query to display the correct profile based on their name.
pdquery.Query = ...
0
votes
1answer
240 views
return a list view in visual webpart
In have the following code which returns a list and binds it to my repeater.
Dim Partnership As SPList = web.Lists("PartnersMedia")
rptPartnership.DataSource = Partnership.Items.GetDataTable()
...
0
votes
2answers
175 views
Does web part property validation only work for visual web parts?
Suppose I define a web part property like this:
private string _myString = "default value";
[WebBrowsable(true),
WebDisplayName("My string"),
WebDescription("A simple bit of text to ...
1
vote
1answer
325 views
Displaying SPChange data in visual webpart
Here is some code I've been playing with to display all items that have been changed in a web and all subwebs in a visual webpart (it grabs a heap of info and chucks it in a label):
protected ...
0
votes
0answers
349 views
Advanced filtering XsltListViewWebPart with custom webpart
I have got simple list rendered by XsltListViewWebPart. I would like to create additional filtering options using custom visual web part to provide list item id's to filter XsltListViewWebPart on same ...
1
vote
4answers
328 views
Refreshing page or making it to respond after downloading the file. All happening in Webpart
I'm having a Visual Webpart that allows user to select Managed Properties and find out what is stored inside it. The result is displayed inside a gridview which he/she can export it to excel.
It is ...
0
votes
0answers
202 views
Creating web part page template for webpart pages using visual studio code
I created a visualwebpart for list Employee details. Created a web part page template with the following steps:
Created a module named WebPartPageTemplate
Renamed Sample.txt to ...
1
vote
1answer
177 views
Refresh a list webpart to reflect the item added developed using visual studio 2010
I have a visual webpart that list the students. Also have a webpart to add/edit student. after deploying the application, I created new webpart page and added CreateStudent webpart in a zone and ...
0
votes
1answer
786 views
How to add Sharepoint List item Title (link Button) hyperlink in Grid View Control
I created one visual Webpart, it is having one Grid Control to display the items but that items having a link to open current item URL (Like Display Item)?
0
votes
2answers
551 views
Upload photo to a custom list using visual webpart in sharepoint 2010
I have a list, ListPersonalDetails, for storing personal details of students. It has fields like firstName, lastname, address etc. It also contains a field to store the photo which is of type image. I ...
0
votes
0answers
199 views
Visual webpart (sandboxed) VS Power Tools
I have installed VS Power tools and I have added a visual webpart(sandboxed) into my sandboxed solution. I get the error "InitializerControl does not exist in the context" and also I see that no ...
2
votes
2answers
565 views
sharepoint webpart property disappear after a day (C#)
I developed a custom webpart with a webpart property with some textboxes and it works partially.
If I deploy the project, the written text in the property is away. This is ok.
But my MAIN Problem ...
4
votes
2answers
1k views
Create a custom error page to redirect to instead of generic AccessDenied.aspx?
When a user has not been given permissions to a particular site they receive the ugly "Error: Access Denied" page.
Is it possible to capture this on one particular team site (via custom webpart) and ...
0
votes
1answer
796 views
Retrieve Title, Image and URL from a Custom List and bind to repeater control
I am doing custom visual web part(Sandboxed) developement. I am facing a little hurdle as I unable to retrieve Title, Image and URL columns from my custom list and bind it to a repeater control. Also ...
1
vote
2answers
2k views
Deploying web part from Visual Studio?
I exported a Core Search Results Web Part and created a new Visual Web Part in a Visual Studio project. I have added some code to the .cs page and the code for my exported webpart to the .webpart file ...
0
votes
0answers
113 views
Webpart with update panel is deleting the text in IE's tab on every request
I have a web part that display information to the user. It lives in the pages: /Pages/default.aspx
The web part was working fine until I wrapped the grid in an update panel. Now when you sort or ...
1
vote
1answer
56 views
Web Part Resources e.g. Images and Scripts [duplicate]
What is the best practice for including resources such as Images / Stylesheets / Scripts in a custom visual web part (built with Visual Studio)?
0
votes
1answer
165 views
Need to produce custom html out of VIsual Web Part
I have to use Visual Web Part that retreives data from sharepoint list and produces some custom html. I want then to render that custom html as part of the Visual Web Part.
Here is the html that I ...
1
vote
1answer
645 views
Overriding Sharepoint SaveButton
Fairly new to sharepoint, and working on a project which involves making custom webparts to enable extra functionality in new/edit/display webparts.
I have a working overridden SaveButton in the ...
1
vote
0answers
114 views
SPQuery on ECT very slow
I am creating a custom web part which is supposed to return results from an External Content Type(ECT) List which contains almost 40,000 records. There are multiple ways the items can be searched and ...
0
votes
0answers
65 views
edit which data is rendered with google Chart through EditorPart
I am using the GoogleChart API to render some charts .
To do this, I am executing a LINQ Query which looks similar to this:
var dataList = from products in entities.Productlist
select ...
1
vote
0answers
366 views
How to check for IsPostback in Visual Webpart
I have created visual webpart in SharePoint 2010 which will generate class file for class derived from Webpart and second for UserControl. Now I have TabStrip Control on .ascx markup.
Now I want to ...
1
vote
1answer
672 views
how to Render Controls from CodeBehind into a specific Panel
I'm in the process of working thorugh Microsofts video tutorials for developing on Sharepoint. My actual small project is to create a visual Webpart which displays a list of all registered users with ...
3
votes
1answer
118 views
Error: Sharepoint 2010 Web Part appears to be causing a problem. Invalid temp directory in chart handler configuration
I have a sp2010 website where I am trying to use a network path for the images as I have a WebFarm which is loadBalanced using CISCO ACE appliance hardware (without IP Stickiness). The reason I am ...
0
votes
2answers
349 views
Custom Visual Web Part editable CSS
I am making a custom visual web part in Visual Studio 2010 and I am trying to add a editable CSS style sheet to it. What I mean is I want to make a property that the user can access through the edit ...
1
vote
1answer
172 views
Permissions to write into but not view a list?
I have a custom web part on my home page that is essentially a textbox and a button for submitting suggestions.
The suggestions are written to a custom list named "Suggestions".
Now, I would like ...
0
votes
2answers
2k views
Visual Web Part control for select user/group?
Does somebody know exist a control for a visualwebpart that allows to select an user/control?
I am creating a form using a visual web part and i want to allow to select an user.
I am searching for ...
1
vote
0answers
906 views
Why Sharepoint FormField's ID is parametrized and how it can take different values after its initial creation?
In SPD 2010, on designer surface of a web part page I insert DataFormWebPart by:
"Current Data Source" ("Data Sources Details" Task Pane) --> choose rows --> "Insert Selected Fields As.." --> "New ...


