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

learn more… | top users | synonyms

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: ...
0
votes
1answer
677 views

Rendering IMAGES (attached to announcement list) in my custom web part?

Please bear with me as I am brand new to the whole sharepoint world. I want to be able to display images that have been attached to OOTB announcement list in a custom visual web part I am trying to ...
0
votes
1answer
148 views

XML Dictionary - how to provision with feature and read it?

I have an visual webpart and I need to populate drop down with content extracted from xml file. How can I provision that XML file with feature and then how can I access it from my codebehind to be ...
0
votes
1answer
2k views

Localizing ASP markup in webpart issue

In my web part I have an label, which I want to be localized: <asp:Label ID="AppJSTNameLabel" runat="server" Text="<%$Resources:AppListWebPart,NoSelection%>" /> I have mapped Resources ...
0
votes
1answer
616 views

Getting Metadata column field control on Custom form in sharepoint

I have a custom custom sharepoint form which i have created using visual webpart. I want to have a Metadata field in my custom form.However, i am not able to find it in my ascx file. Please help.
0
votes
2answers
128 views

Call Javascript functions from Server

I want to develop a simple web part using VS 2012 and add this code for button click: SPListItem Item = SPContext.Current.Web.Lists["Tasks"].Items.Add(); Item["Title"] = TextBox1.Text; Item["Due ...
0
votes
1answer
404 views

Using SharePoint resource file in my web part

I have a SharePoint application and for that I have created resource files which are inside App_GlobalResources folder. I am making a visual web part and want to use those resource files rather ...
0
votes
1answer
255 views

Unable to create Image Slider web part using slideShow.js

I want to make the web part for image sliding for Picture Library. I got this link for doing so. My code for visual web part is : <!DOCTYPE html> <html> <head> <meta ...
0
votes
3answers
2k views

Unable to validate sharepoint date time control

I have added a <SharePoint:DateTimeControl> in my visual web part and I want to make it mandatory. To do so I referred this link and used as per my code. My code is: <tr> <td> ...
0
votes
1answer
3k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
3answers
1k views

How to get a creation date from a SPListItem that is a folder in c#?

I am making a visual webpart in SP 2010, and I download the SPListItems from a document library. I need to get the creation date of all the documents and folder items. I can do it successfuly for ...
0
votes
1answer
80 views

How to detect if the user exited page edit mode?

I am making a visual web part for SP2010, and the webpart hides shows content depending on if there was a postback or not. However the only exception to this, is the postback of exiting the page edit ...
0
votes
1answer
605 views

What is the scope of SPContext.Current.Web.GetList?

In my visual web part for sharepoint 2010, I use the function SPContext.Current.Web.GetList("myserverrelativeurl") to get a document library. But I noticed this only works if the link is in the same ...
0
votes
3answers
121 views

Is there a way to say getitembyid and use caml query to get no fields?

In my visual webpart, I want to get an item by it's id from a document library, and change it's field value. I don't want to actually read any of its field values, so I was wondering is there is a way ...
0
votes
1answer
115 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
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
2answers
114 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
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 ...
0
votes
1answer
231 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 ...
0
votes
1answer
251 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
162 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
2answers
54 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 ...
0
votes
3answers
9k views

Cannot connect to the Sharepoint Site from Visual Studio 2010

I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio 2010 but when I try to validate my Sharepoint Server (both VS 2010 and Sharepoint are present in two different system - ...
0
votes
1answer
23 views

c# add existing webparts on site into sandbox webpart solution

I want to create a webpart using sandbox webpart solution on C# which contents two or more webparts (such as a list, task, document,...) existed on my Sharepoint site. So my new webpart will have some ...
0
votes
2answers
36 views

SPUtility Send Email for mulitple users

I am trying to send an email to multiple users using SP Utility Send Email I am using visual studio, c# But i am facing issue, as i am trying to specify email addresses as a ,b Should i be using ...
0
votes
2answers
22 views

How do you display a link that when clicked opens up a new email in Outlook?

I am creating a visual web part that displays the site owners of a SharePoint site and each site owner's email. I would like users to be able to click the email address, and this will open up a new ...
0
votes
1answer
48 views

My gridview does not display.

I am creating a web part on SharePoint that shows site owners and their email addresses. I am able to show that information in a listbox, but I would rather do it in a gridview. When I change my code ...
0
votes
2answers
53 views

How do you show a list of site owners for a SharePoint site?

I am trying to create a web part that will list the site owners of a SharePoint site. I'm not sure where to start. I've been unable to figure out how to access the permissions property of a site. Any ...
0
votes
2answers
93 views

Custom webpart to display HTML form which supports adding additional dataRow on the fly?

Would like to build a WebPart which will display an HTML form(allow the users to add the data rows as many as required) and will insert the data into the SharePoint list on the submit (based on ...
0
votes
2answers
687 views

the name 'initializecontrol' does not exist in the current context visual studio 2013

I am encountering this error when I create a visual web part in Visual Studio 2012: the name 'initializecontrol' does not exist in the current context visual studio 2013 Edit 1: the error appears ...
0
votes
1answer
118 views

Deploy Farm Solutions to Online SharePoint 2013

I am migrating SharePoint 2010 project to online SharePoint 2013. I managed to move lists, document libraries..etc. with sandbox solutions. But can any one help me how can I deploy the farm ...
0
votes
1answer
75 views

Trying to learn SherPoint development with Sharepoint.com

Because I don't have the hardware or license i bought Sharepoint Online from sharepoint.com I've just started out, and want to for instance create a poll. I Visual Studio I have two choices: App ...
0
votes
2answers
75 views

Error occurred in deployment step 'Add Solution': Feature with Id 'guid' is not installed in this farm, and cannot be added to this scope

I have added FeatureEventReceiver to the solution and here is my code, public override void FeatureInstalled(SPFeatureReceiverProperties properties) { ...
0
votes
2answers
153 views

Cannot save sharepoint page with my custom webpart (with asp.net validation controls)!

I am using sp2010. I have created a visual webpart in Visual Studio 2010. In this webpart I have created a sort of contact form with fields and a button. I have deployed this webpart to my sp site and ...
0
votes
2answers
263 views

How to set the ScriptManager Property programmatically in Visual Web Part?

I have a web part in which I have placed an update panel. To use this web part in the Safari browser there is an issue that the whole page is refreshed instead partial page rendering. The same web ...
0
votes
1answer
121 views

SPMenu Field for sharepoint document library

I have written code where it will show the Sharepoint document library in sp grid view.It is showing the grid but i want the default spmenu field for the type icon. please see the attached image. ...
0
votes
2answers
564 views

How to open document library file in client application programmatically?

I have a web part which shows the list of documents which are stored in the document library. I want to open the document in respective client application of client machine programmatically. ...
0
votes
1answer
116 views

Custom Web Part property is applied to all web parts when configured

I am facing an issue with SharePoint 2010 Web part Properties. I have created a Custom Web Part Property with Boolean type. Now I am adding this web part to 3 different pages when I set this ...
0
votes
1answer
672 views

Adding a custom control in visual web part

Can anyone please provide steps or a link for deploying a visual webpart with custom control in sharepoint 2013?
0
votes
1answer
2k views

Creating and deploying a visual webpart using VS 2012

I'm new to sharepoint. I managed to create a visual web part in VS 2012. But I don't know how to deploy it properly. I only added a button control to the webpart page. After that I used F5 to deploy ...
0
votes
1answer
49 views

I can't find the markup for webpart properties in visual studio

I've created a custom web part editor but I don't know where to look if I want to find the markup for all the properties of my webpart inside visual studio. I mean I can create new controls on ...
0
votes
1answer
136 views

Getting Term name from clicked Managed Navigation Item

I have created a Term Set (Channels) which is marked as "Available for Tagging" and "use this term set for Site Navigation" and for its "Target Page Settings" I chose Topics.aspx in pages list. This ...
0
votes
4answers
418 views

chart webpart Sharepoint 2010

how to create a custom web part/visual web part that will generate a chart from an existing sharepoint list. Is there any possible way of doing this aside from using the OOB Chart Web Part? We have ...
0
votes
1answer
337 views

How to create a custom chart webpart

I would like to create a custom web part/visual web part that will generate a chart from an existing sharepoint list. Is there any possible way of doing this aside from using the OOB Chart Web Part?
0
votes
1answer
147 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: ...
0
votes
1answer
358 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
199 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 ...
0
votes
2answers
311 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 ...
0
votes
1answer
1k 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
2answers
68 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 ...