0
votes
3answers
26 views

Changing visibility of text/controls in a visual web part

I need to show/hide a section of text and controls in a visual web part when a button is clicked. I've seen references to doing this via JS but can't connect the dots for how to integrate that into ...
0
votes
2answers
27 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 ...
4
votes
1answer
49 views

How to programmingly create a “Link to a Document” in an ASP.net web application?

I have a asp.net web application which requires to upload files to a SharePoint document library. I got that working. Now, I need to know how to code using C# in my web application to create a "Link ...
0
votes
1answer
42 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
1answer
35 views

Custom SharePoint 2007 web part is extremely slow to load

I have a simple web part that I've added to my SharePoint 2007 site that containes a few labels, textboxes, a gridview, and a detailsview. This web part connects to SQL 2005 to retrieve data after ...
0
votes
0answers
24 views

Possible to integrate Recaptcha with Microsoft Forefront Identity Manager

I've been tasked with adding a recaptcha field to our front-facing self service password reset page that is provided via FIM 2010 R2. I am not too familiar with ASP. I have added the recaptcha ...
2
votes
2answers
45 views

asp.net project and sharepoint project

I have a problem with asp.net project, I can't acces to my sharepoint site, I have a error message when I do : using (SPSite site = new SPSite("http://<SharePoint_Site_URL>")) So I'm asking ...
-1
votes
1answer
34 views

Master Page Format Change

I am taking the plunge to change a master page format. I am wanting for the text to appear in the middle of the page with a frame around the text. Question. Does anyone know on how this can be done? ...
0
votes
1answer
26 views

What user executes the code when running SPSecurity.RunWithElevatedPriveleges?

I have done research on this and still can't find a strong answer. Some soures say that when using SPSecurity.RunWithElevatedPriveleges that the code is executed as a site collection admin. Some ...
1
vote
0answers
596 views

The remote server returned an error: (401) Unauthorized. Using CSOM in ASP.NET MVC 4

I'm trying to pull data through SharePoint 2013 BDC Models that I have imported from my ASP.NET application which works fine when I run either locally on my machince or locally on the server. ...
0
votes
1answer
135 views

How to Attach file to Outlook Application

I am trying to attach a file to outlook Application using java script.Its working fine in IE 10 and above but not in any other browsers. Here is my requirement. For Document Library a. When a user ...
0
votes
2answers
86 views

How to read and output the XML within an SPFile?

I have this line of code that retrieves an XML file and saves it as an SPFile object SPFile XMLFile = SPContext.Current.Web.GetFile("C:\\Users\\maleem\\Documents\\XMLTest.xml"); I want to get the ...
1
vote
2answers
53 views

How to display charts dynamically other than by using MSCharts?

I would like to display a pie chart in a custom SharePoint application page. One option to do this is by using MSCharts and <asp:Chart> tag. However, getting this to work requires modification ...
0
votes
3answers
157 views

Collapsible asp.net control for SharePoint2010

I have a custom Instantiation form with a lot of CheckBoxes in SP2010. Now I've to put the CheckBoxes into different categories which should be collapsible, like you can see in the picture below. Is ...
1
vote
0answers
23 views

How can I print all the PublishingWebControls:RichHtmlField content inside my EnterpriseWiki.aspx as a pdf file

I am working on an enterprise wiki site collection , and using the SharePoint designer I have manually added a link named “Print to PDF” as follow:- But I am trying to implement the link ...
0
votes
0answers
53 views

How to create list from excel sheet located inside document library?

I need to create and calender control/list in share point from an excel file, there are many tutorials available for this on net, but unfortunately this excel file needs to be updated timely and hence ...
1
vote
0answers
288 views

SP DataTimeControl validation issue (error message does not disappear after choosing correct date)

I write simple WebPart with few asp.net controls. I have problem with validation control and SharePoint date time control. The markup: <SharePoint:DateTimeControl ID="dtc" runat="server" ...
0
votes
0answers
104 views

Request for the permission of type 'System.Data.OracleClient.OraclePermission failed

I am facing a permission issue. I am deploying my asp.net application to SharePoint 2010 environment as a WSP solution package. Our application uses Oracle client to contact our Oracle database and ...
1
vote
2answers
1k views

How to pass values from SP UI Modal Dialog back to the server side code upon button click event

I have a click event on a button that opens a sp ui modal dialog page. and returns a specific value from a text area on that page. I was able to open the page in the modal dialog and able to return ...
0
votes
2answers
23 views

Modify web.config in Sharepoint based application

Can i modify programmatically the web.config file of a Sharepoint 2010 site in my custom application? In devopment enviroment i add my custom config to web.config. Threre is a way to do this from ...
0
votes
0answers
161 views

Modified People Editor field not reflecting changes in Code Behind

As per my client's requirements I have created a completely custom list EditForm. Everything is working fine except for one thing. If I modify the manager field which is of type ...
0
votes
0answers
115 views

consuming WCF web service from client side in SharePoint 2010 Visual Web Part Sandbox Solution

I have a visual web part Sandbox solution. I need to attach an external WCF web service in order to submit data to database using the custom form I have created. Is there a way I can attach web ...
2
votes
1answer
112 views

How I can start with ASP.NET and Sharepoint 2010 Development? [closed]

I don't know how I can begin with the Development for Sharepoint 2010. I can create ASP.NET Webapplications and begin with ASP.NET MVC 4 Now. I search a good article for the work of ASP.NEt (MVC or ...
0
votes
0answers
278 views

Getting error when doing a jquery ajax funtion to a webpart aspx page

I want to send data using ajax from jquery to c# (note: im sending request to the same page). I am following this tutorial http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/. ...
2
votes
1answer
214 views

Listing all the documents in SharePoint server using C#?

I'm new to SharePoint server. I need to get the list of all document stored in SharePoint server, not in particular user site. Is there any way to get all documents list , name or count using C#? ...
0
votes
2answers
86 views

How to embed image in SharePoint Workflow Association Form?

I am developing a custom SharePoint workflow in Visual Studio. I have a custom association form (ASPX) and I'd like to display an image, which is embedded into the project (and subsequently wsp). ...
2
votes
2answers
81 views

Navigation on webpart

I don't really got a problem just a question. After googling around I couldn't find any answer on what I'm looking for. Is it possible to put a <asp:TreeView/> or multiple ...
0
votes
1answer
227 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
0
votes
2answers
31 views

How to round a datatime LocalTime to the onkly datatime. Not to the time with hours

I have got a code: DateTime dzienStart1; DateTime dzienStop1; dzienStart1 = dzienStart.ToLocalTime(); dzienStop1 = DateTime.Now.ToLocalTime().AddMonths(-2).AddDays(-1.0); Whem I look at a date in ...
0
votes
1answer
151 views

Unique ID get selected list

How do i do so i can work on multiple lists? This works if i'm working with one list. (SPSiteDataQuery) SPWeb web = SPContext.Current.Web; SPList myList = web.Lists["Staff ...
0
votes
1answer
65 views

Time in Sharepoint

We have got two method in Sharepoint to get the time. One is ToUniversalTime() an secound is ToLocalTime() But when we are in server and have got a aplication instaled on server which kind data method ...
1
vote
2answers
275 views

Optional Parameters in C# at Sharepoint

How Could I set optional parameters when programing in sharepoint. Now I'm while debuging getting error: Feature 'optional parameter' cannot be used because it is not part of the 3.0 C# language ...
0
votes
1answer
164 views

Gridview not showing date

I'm working with a gridview, so i can show data from my three lists. I get it to show the title, but the date doesn't appear! Check the if statement. using (SPSite site = new ...
0
votes
1answer
144 views

Search multiple lists

I want to search through my lists. And show it on a repeater control. On my dropdown i got 3 options, (All, List1 and List2). But my If statement wont work. The else is working fine, but it hangs when ...
0
votes
1answer
63 views

Listinstance url

I'm working to show my attachments in a repeater control. It works ALMOST perfectly. I just want to get the full url to my attachment. Right now i'm getting: ...
0
votes
3answers
3k views

Could not load file or assembly 'Microsoft.Sharepoint.Sandbox' or one of its dependencies

I created an ASP.net webapplication and i have used assemblies Microsoft.SharePoint; and Microsoft.Office.Server.UserProfiles in it.. i get a run time error "Could not load file or assembly ...
0
votes
1answer
371 views

Repeater control reverse order

I'm working with a repeater control that displays my list items. Everytime i add an listitem it displays it on my repeater. But i want the repeater to display the latest added item at the top. Any ...
0
votes
0answers
230 views

ASP Calendar double click event get the date of clicked day

I haw got the ASP Calendar. I want to choose range from date to date. If i choose "SelectionChanged" i could only set one date. I think meybe I could set a second date which is end of Date Rannge when ...
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 ...
2
votes
3answers
3k views

The remote server returned an error: (401) Unauthorized sharepoint

Here is my scenario:- I have my Sharepoint server hosted on Domain A and I have my machine on Domain B. There is not any trust between Domain A and Domain B. I am trying to access the Sharepoint ...
-1
votes
3answers
37 views

Two DropDownLists in this same site

I have got two DropDownLists. I want when I set in one value it should change in secound DropDownList the vales. Please Help. Always the values should look like updated.
1
vote
0answers
77 views

DropDownList change the values in the same times

I have got two DropDownLists, and I want to change if I change in first Drop down list Values then I want to change in secound DropdownList. My first DropDownList has got a code: SPUserCollection ...
1
vote
0answers
33 views

Problem with finding out loged user

I try to write a procedure, which find out is the user logged or not not loged in the service. I write a code. But it sometimes giving me a true or false if not a person shown. Sometimes it gives me ...
0
votes
1answer
70 views

Sort alphabetically Users

When I'm Adding users, i want to sort them alphabetically. Could You help. Here is my code: SPUserCollection userzyWszyscy2 = witryna.SiteUsers; foreach (SPUser oUserKolejny in ...
2
votes
1answer
1k views

Populate a Drop Down List with Unique Values from a list

I have got a list with names of workers. How could I populate a DropDownList with unique values (ie: avoid duplicate) from the list? If the list contains duplicate values I need to avoid inserting the ...
1
vote
1answer
4k views

How to run a popup window from code behind in web Part writen in C#

I must run a popup warning when somebody exceeds some value. I tried a SharePoint Modal Popup using JavaScript, but I don't know how to run something from code behind with JavaScript and a SharePoint ...
0
votes
1answer
46 views

How to make faster readable elements from the list?

I have an ASP Calendar, which shows elements from the list. If I try to bind the elements to the list, there are a lot of elements for example 35 429 elements. It takes up to 4 minutes to load this ...
1
vote
1answer
58 views

Include in SharePoint 2010

I have a custom HTML menu in my MasterPage. I would like to have it in a separate file so it can be easier to update. Is it possible to do an Include?
0
votes
3answers
408 views

Render TextBox (sever control) in WebPart and manage (text, visibility etc of) the server controls from editor part

My initial goal is to achieve the following Render dynamic TextBox in custom editor webpart Manage Text (, visibility, height, width etc) of the TextBox from editor part. We can consider ...
0
votes
1answer
249 views

Remove value in drop down list after being selected

I would like to ask, how to disable the value in drop down menu after being selected? I mean, let says if when User A select value B in drop down list, B is not available to be selected anymore to any ...