Questions tagged [asp.net]

ASP.NET is an application framework developed by Microsoft. It is built on top of the .NET Common Language Runtime (CLR). SharePoint is built from the ASP.NET framework.

Filter by
Sorted by
Tagged with
1 vote
3 answers
715 views

Sharepoint beginner

I'm a Sharepoint beginner, just getting into it. Please suggest me some best way to learn sharepoint and best books available in the market. We are using SharePoint 2013.
0 votes
1 answer
214 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 ...
krisal's user avatar
  • 229
0 votes
1 answer
105 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 ...
Grzegorz Z's user avatar
  • 1,709
1 vote
2 answers
959 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 ...
Grzegorz Z's user avatar
  • 1,709
0 votes
1 answer
288 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 SPSite("http:...
krisal's user avatar
  • 229
0 votes
1 answer
282 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 ...
krisal's user avatar
  • 229
0 votes
1 answer
87 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: http://knowitintranet:9797/sites/News/...
krisal's user avatar
  • 229
0 votes
3 answers
6k 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 '...
Anu's user avatar
  • 87
0 votes
1 answer
809 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 ...
krisal's user avatar
  • 229
1 vote
1 answer
934 views

Change context using RenderContext for SharePoint control doesn't work after postback

I am trying to create an ASP workflow task form. It should contain two types of fields: fields from related item (on which WF was started); fields from task (such as Due Date). For that I try to ...
MikhailSP's user avatar
  • 1,449
0 votes
0 answers
630 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 ...
Grzegorz Z's user avatar
  • 1,709
2 votes
2 answers
6k views

How can I send data to a modal popup without using a jquery string?

as a bit of background I am new to Sharepoint development, as well as web programming in general. I've done asp.net programming in the past, but not much javascrip/ajax/jquery. From the (tons...) of ...
Philip's user avatar
  • 21
2 votes
1 answer
93 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 ...
J.H.'s user avatar
  • 31
0 votes
1 answer
3k views

visual basic in sharepoint 2010

I am new to SharePoint. My head in the office told me that if you want to learn SharePoint, you have to learn ASP.Net first because we need to add webparts to the portal. I installed visual ...
code's user avatar
  • 3
3 votes
3 answers
13k 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 ...
RL89's user avatar
  • 131
-1 votes
3 answers
45 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.
Grzegorz Z's user avatar
  • 1,709
1 vote
0 answers
18 views

controls to make extendable zone

I'm making a setting page in my SharePoint site and there is a lot of setting zone on this page, so I'm thinking what's the asp or SharePoint control that makes each zone appears just by clicking on ...
Glolita's user avatar
  • 419
5 votes
1 answer
1k views

How to alter SP2013 workflow task from an ASP task form?

I have created SPD workflow with a custom ASP form. My form opens when clicking on a task link and I can show information about the task. Now I want to alter the task after pressing a button, but can'...
MikhailSP's user avatar
  • 1,449
2 votes
1 answer
629 views

Open in new tab document link item from document library

I have a document link item that points to a URL. This item is inside a document library. Is there a way to make this item open to a new page? I opened the aspx file it creates, but I am unsure how ...
Rick's user avatar
  • 441
1 vote
0 answers
100 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 ...
Grzegorz Z's user avatar
  • 1,709
1 vote
0 answers
36 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 ...
Grzegorz Z's user avatar
  • 1,709
0 votes
1 answer
149 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 ...
Grzegorz Z's user avatar
  • 1,709
2 votes
1 answer
4k views

ASP.Net Label control's Text property not updating text under button click event

I have developed a small application in SharePoint. I am using custom application page and load .ascx Control over that page under Page_Load() method. In .ascx Control, I have created a small form ...
SPBeginer's user avatar
  • 2,547
2 votes
1 answer
4k 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 ...
Grzegorz Z's user avatar
  • 1,709
0 votes
1 answer
131 views

sharepoint 2007 print

We have application pages in library in Sharepoint 2007. I am solving very strange issue. We are using two css files - Common.css and Print.css. Print.css is described like this <link runat="...
user avatar
5 votes
1 answer
816 views

Uploading '.xlsx' or '.docx' to SharePoint 2007 from ASP.NET app causing file 'corruption'

I have an ASP.NET application wrapped in SharePoint 2007 website. Within this application I allow users to create requests and they can also upload supporting files for the request. When a user ...
ORION's user avatar
  • 151
1 vote
1 answer
11k 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 ...
Grzegorz Z's user avatar
  • 1,709
1 vote
3 answers
12k views

How to add .aspx page in sharepoint 2010 project with visual studio 2012?

I went through following links: http://www.codeproject.com/Tips/312544/How-To-Add-Custom-ASP-NET-Page-Using-Layouts-Folde http://sharepointsolution2010.blogspot.in/2011/05/add-custom-aspx-page-in-...
Anuja's user avatar
  • 3,103
5 votes
2 answers
2k views

Server-Side Rendering in SharePoint 2013 Content Search Web Part Without XSLT?

Background: I am new to SharePoint and I recently attended the SharePoint 2012 conference. It seems the primary way to render content in a custom way is on the client-side via JavaScript in the ...
Nicholas Westby's user avatar
1 vote
1 answer
326 views

How can I publish an ASP.NET web application in my Sharepoint environment?

I'd like to be able to host small custom ASP.NET applications within my Sharepoint environment. For example, I would like to have associates able to access our locations application by pointing to ...
nfw's user avatar
  • 747
2 votes
0 answers
1k views

Custom aspx page with web part

What would be the best way to have a custom asp.net page which runs on sharepoint and displays a web part? TIA
user avatar
1 vote
2 answers
1k views

Sharepoint mechanism to add scripts to aspx page?

(a) Is there a mechanism (by sharepoint) of registering to include a script into the aspx page? (b) If yes, then if I do the following from a user control what would be the result? Debug.Print(this....
deostroll's user avatar
  • 233
0 votes
1 answer
63 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 ...
Grzegorz Z's user avatar
  • 1,709
1 vote
1 answer
635 views

Dropdown menu with XML data source gives web part error

I am using SharePoint designer to build a page with a data view web part that displays the contents of a 6,000 record XML file that is structured like the example below with each "Details" element ...
Andrew Henley's user avatar
1 vote
1 answer
77 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?
Rick's user avatar
  • 441
1 vote
1 answer
422 views

Sharepoint 2010 - multiple ip addresses

I have Sharepoint 2010 installed in local network. SPS has local address http://sps2010, and has a public IP (e.g. http://1.2.3.4). When I access SP via a public IP there are some links like ("...
lewis's user avatar
  • 115
0 votes
1 answer
540 views

ASMX WebService and use of List Object

I have developed WCF service in Visual Studio 2010 and following is the code which worked perfectly. using System; using System.Collections.Generic; using System.Linq; using System.Runtime....
user342944's user avatar
0 votes
3 answers
918 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 ...
Shahdat's user avatar
  • 101
0 votes
1 answer
972 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 ...
Confused's user avatar
  • 101
1 vote
2 answers
3k 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 ...
Suja Shyam's user avatar
1 vote
0 answers
228 views

Visual Studio intellisense over WebDav (DAVWWW) does not work. Failed to Start Monitoring

The page lives in a library inside SharePoint 2007 and has inline c#.. no master page or sharepoint references. I can open, edit and save the page via the URL. But getting warnings and no intellisense....
Hell.Bent's user avatar
  • 1,299
1 vote
1 answer
507 views

SharePoint 2010 and ASP Profile Provider

We have web application with SQL ASP Membership Provider, Role manager and profile provider. This web application has both authentication methods: NTLM and forms. Everything works fine. Problem ...
jjczopek's user avatar
  • 1,537
3 votes
3 answers
11k views

The attribute 'autoeventwireup' is not allowed in this page in sharepoint

I had two FARMS. QA and PROD. Both are identical. 2 WFE / 2 APPSERVERS / 1 SQL BACKEND. When (in QA) I browse an .aspx page it returns this error: The attribute 'autoeventwireup' is not allowed in ...
Javier's user avatar
  • 166
1 vote
2 answers
4k views

Working with args option of SP.UI.ModalDialog.commonModalDialog

I have the following situation: In my Sharepoint 2010 ASP.Net Application page app I want to allow my users to select a Supervisor for an employee who's information they (the user) is modifying. For ...
Jess's user avatar
  • 11
0 votes
1 answer
334 views

Rendering linkbutton with image

I have an issue when i try to render the linkbutton with image and text it isn't rendered correctly. I render it from a servercontrol in method OnLoad. And I do not understand why, maybe someone knows ...
Shkipper's user avatar
  • 2,105
2 votes
2 answers
4k views

Adding the Ajax Control Toolkit to a SharePoint project

I am unable to get the List Search Extender from the Ajax Control Toolkit to work correctly. After inserting my WebPart to the page, I get the error: "Could not load file or assembly '...
James Grizzle's user avatar
1 vote
2 answers
989 views

Pushing data from a classic ASP site to SharePoint

We have a publicly facing classic ASP site and I need to capture some data from that site and push it to SharePoint and vice versa. There are a few options as far as I know; Writing a custom web ...
AnarchistGeek's user avatar
1 vote
1 answer
518 views

Use ASP page from web application in SharePoint

I'm trying to use existing aspx page in SharePoint 2010. Page it self depend on some 3rd party classes and I provided source for them and additional assemblies, and project compiles and deploys to ...
jjczopek's user avatar
  • 1,537
5 votes
2 answers
908 views

How to specify file name using web services?

I have the following code which creates an item in the library I want: string newPageXml = String.Format(@"<Batch OnError='Continue'> <Method ID='1' Cmd='New'> ...
Abe Miessler's user avatar
  • 6,755
1 vote
1 answer
1k views

How to specify content type when creating a list item using web services?

This is what I have tried so far: string newPageXml = String.Format(@"<Batch OnError='Continue'> <Method ID='1' Cmd='New'> ...
Abe Miessler's user avatar
  • 6,755

1
6
7
8 9 10