Including Your Own ASP.NET Pages in Your SharePoint Portal
page 1 of 6
Published: 19 Jul 2006
Unedited - Community Contributed
Abstract
In this article Ameet explains the various aspects of integrating an ASP.NET Page in SharePoint Portal.
by Ameet Phadnis
Feedback
Average Rating: 
Views (Total / Last 10 Days): 73519/ 38

Introduction

SharePoint provides a few ASP.NET pages which allow you to manage a Portal.  However, business situations arise that require developers to build their own ASP.NET pages.  One situation that comes to mind is an employee directory.  In big organizations you might be tasked with displaying all employees based on search criteria or displaying employees for a particular department.  Once the employees list is displayed, the user might have to get more information on where that particular person is located, the bio information or even the floor map for the employee's office floor.  In this scenario we have the following options:

·         Create a Web Part to display the Employee Directory and then have another ASP.NET application that will have only one page that will display the location of the person.  This ASP.NET page will accept a querystring to get the ID for the employee.  This would be the easiest way accomplish this option, but you would need to maintain a separate application for only one page.

·         The next option might be to develop two web parts.  The first web part has a list of all employees' names.  This web part is a provider web part.  The second web part will contain the location information for the Person.  The second web part will be a consumer web part. The first Web Part provides the second web part employeeID.  The second web part consumes the employeeID.  This option is really good except if the second web part is a really huge display of the floor map and pins where the person is exactly located, the user will have to scroll through the page to find the exact employee location.

·         The last option is building a Web Part similar to option 1 and then building a separate Web Page holding the location information or floor map information.  The Web Part will have a link and will open the floor map information in a separate window.  With this option the ASP.NET web page is also hosted with the SharePoint Portal.  This sounds very simple, but if you try creating ASP.NET pages as they are usually done you will start getting errors because SharePoint does not recognize the plain ASP.NET pages.  So, we will have to do some tweaking to make SharePoint understand that these are SharePoint ASP.NET pages.


View Entire Article

User Comments

Title: jljkl   
Name: jljl
Date: 2012-09-21 7:14:57 AM
Comment:
jklj
Title: 2012 NFL jerseys   
Name: NIKE NFL jerseys
Date: 2012-05-20 11:39:07 PM
Comment:
[/pre]Cheap NFL,NBA,MLB,NHL
[url=http://www.jersey2shop.com/]Jerseys From China[/url]
[url=http://www.jersey2shop.com/]2012 nike nfl Jerseys[/url]
[url=http://www.jersey2shop.com/]cheap China Jerseys[/url]
[url=http://www.jersey2shop.com/]Sports Jerseys China[/url]
[url=http://www.jersey2shop.com/NFL-Jerseys-c68/]NFL Jerseys China[/url]
[url=http://www.jersey2shop.com/NBA-Jerseys-c77/]NBA Jerseys China[/url]
NHL Jerseys China
[url=http://www.jersey2shop.com/MLB-Jerseys-c94/]MLB Jerseys China[/url]NFL jerseys For Sale online.All Our Jerseys Are Sewn On and Directly From Chinese Jerseys Factory
[/pre]
[pre]We Are Professional China jerseys Wholesaler
[url=http://www.cheapjersey2store.com/]Wholesale cheap jerseys[/url]Cheap mlb jerseys
[url= http://www.cheapjersey2store.com/]2012 mlb all atar jerseys[/url]
[url= http://www.cheapjersey2store.com/ [/url]Cheap China Wholesael[/url]
[url= http://www.cheapjersey2store.com/]Wholesale jerseys From China[/url]
[url=http://www.cheapjersey2store.com/]2012 nike nfl Jerseys[/url]Free Shipping,Cheap Price,7 Days Deliver
[/pre]
[/pre]
We are professional jerseys manufacturer from china,wholesal
sports [url= http://www.cheapjersey2store.com/]Jerseys From China[/url]
[url=http://www.cheapjersey2store.com/NFL-Jerseys-c68]NFL jerseys China[/url]
[url=http://www.cheapjersey2store.com/NHL-Jerseys-c96/]NHL Jerseys China[/url]
[url=http://www.cheapjersey2store.com/NBA-Jerseys-c77/]NBA Jerseys China[/url]
[url=http://www.cheapjersey2store.com/MLB-Jerseys-c94/]MLB Jerseys China[/url]
[url= http://www.cheapjersey2store.com/]China Jerseys[/url],Free Shipping
[/pre]
[/pre]
We are professional jerseys manufacturer from china,wholesal
sports [url= http://www.jerseycaptain.com/]cheap jerseys sale online [/url]
[url= http://www.jerseycaptain.com/]2012 nike nfl Jerseys[/url]
[url=http://www.jerseycaptain.com/NFL-Jerseys-c68]cheap NFL jerseys China[/url]
[url=http://www.jerseycaptain.com/NHL-Jerseys-c96/]NHL Jerseys C
Title: New to this   
Name: Johnlen
Date: 2011-03-15 5:05:00 AM
Comment:
Hai,

I am new to sharepoint can anyone explain with exmaple.

Thanks,
Johnlen
Title: Sample & screenshots   
Name: Deepak Karma
Date: 2011-01-06 1:24:31 AM
Comment:
Thanks for the needful article..Please add some sample application or screenshots with this article..
Title: Sample   
Name: Deepan
Date: 2010-09-17 11:38:39 PM
Comment:
Reading this article simple to undersrand. please provide the sample application to download .
Title: screenshots   
Name: Venkatesh
Date: 2010-09-14 10:48:25 PM
Comment:
Can u show me some screenshots?
Title: Including Your Own ASP.NET Pages in Your SharePoint Portal   
Name: Drew
Date: 2009-07-12 9:57:03 PM
Comment:
I am so sick of sketchy cr$p knowledge assuming articles on asp.net -> sharepoint integration that dont provide proper explanation of steps, aRGH!
Title: Asp.Net Web Application With SharePoint Portal   
Name: Ajith
Date: 2009-07-01 3:58:00 AM
Comment:
1) Please give a suggestion on how to include a Web Application into a SharePoint WebPortal.
Title: on windows xp   
Name: Ahmad
Date: 2009-06-30 7:59:56 AM
Comment:
i am using visual studio under windows xp, how can i do that?
Title: This assumes you have SDK's installed...   
Name: DEK
Date: 2008-10-21 9:40:04 AM
Comment:
I have a dedicated Sharepoint server but develop on my XP machine with VS2008. What should I have installed?

I don't see the Microsoft.Sharepoint component.
Title: asp.net page in sp   
Name: d.ramakrishareddy
Date: 2008-09-20 12:20:01 PM
Comment:
verygood
plese put source code for every thing in sp
Title: Web Design   
Name: Lukei
Date: 2008-05-01 12:57:47 PM
Comment:
Why can't you just use ASP code on a web page to do the fuction you need.. Why do you have to publish to the GAC? I'm been trying to make a simple one step page to upload a file from a Form righ to a file library. Why can I find no examples online on just doing this in ASP? Why is everything handled with C#?
Title: Good   
Name: vk
Date: 2008-04-18 5:43:55 AM
Comment:
An excellent article to start working with "Integrating ASP.NET Pages in SharePoint Portal"
Title: Really Its good...   
Name: Samim Mondal
Date: 2008-04-01 2:23:53 AM
Comment:
Its nice article...I learn it.
Title: Integrating ASP .Net pages with SharePoint server   
Name: Kalpana
Date: 2007-12-28 7:50:08 AM
Comment:
Hi,
I couldnt find the folder '60' or Onet.xml file under the Web Services Extensions.
Neither I could find the site name/pages under the folder.
I have installed MOSS 2007 server on a PC, have some ASP .Net pages to be integrating. Have been following the steps you have mentioned in the article "Including Your Own ASP.NET Pages in Your SharePoint Portal". Stuck here not finding the folder and files you have mentioned. Tried searching, but cudnt find it. Require help from page 2 onwards.
Thanks
Title: Good information   
Name: santosh
Date: 2007-10-19 1:45:02 AM
Comment:
That was really helpful
Title: asp.net page in sharepoint   
Name: Christine
Date: 2007-10-05 3:37:39 PM
Comment:
"Change the inheritance from System.Web.UI.Page to Microsoft.SharePoint.WebPartPages.WebPartPage"

With respect the above step in this process, is this line to be edited on the codebehind page? (.cs)
Thank you for efforts! Much appreciated.
Title: fine   
Name: ys
Date: 2007-09-13 12:13:30 AM
Comment:
Fine.
Title: mr   
Name: nurul
Date: 2007-08-27 4:22:24 AM
Comment:
How can i access these pages. and also you have mentioned that we need to copy the dll under portal folder. what is this portal folder? is it in share point or is it a seperate folder?
Title: Mr   
Name: Nurul
Date: 2007-08-27 4:20:50 AM
Comment:
\
\
Title: CodeBehind   
Name: Emrah
Date: 2007-07-05 9:50:46 AM
Comment:
Is codebehind part of the ASP page i created working this way? I think this is the most important part of integrating ASP pages to SharePoint. This article is really good anyway.
Title: Thanx for the Great Article   
Name: Jaya Borra
Date: 2006-12-02 12:28:58 AM
Comment:
Hi Ameet Phadnis
Thanx for ur article, really you saved me. This is one of the best articles I ever found on SPS development
Title: need help   
Name: hiral
Date: 2006-11-22 5:57:10 AM
Comment:
i m trying to do the same thing but cudnt.please help me out.
Title: Page URL   
Name: AP
Date: 2006-10-24 2:12:00 PM
Comment:
The URL can be referenced based on the Area that was created using the template under which you have saved the ASP.NET page.

For example, if you created area called testing under your SharePoint Portal using SPSTOC template and the url is http://SPS/Testing. The in order to reference a page called test.aspx which is stored under SPSTOC then you can reference it using http://sps/testing/test.aspx

AP
Title: Page URL   
Name: Bhargavi
Date: 2006-10-24 12:08:56 PM
Comment:
Hi,

Excellent article. But, i can't figure out how to browse to that page from the portal.

Did any one ever get to the page created following the article. I did everything and I'm lost now.

Thanks,
Bhargavi.
Title: nice one   
Name: bhagwan das
Date: 2006-10-06 3:02:25 AM
Comment:
this is what actually i am looking for .
thankz
Title: How do I reach my page?   
Name: JF
Date: 2006-09-29 11:33:14 AM
Comment:
I followed the steps. Copied the aspx under the TEMPLATE-1033 folder and the dll under the bin.

How do I reach my page?

I'm not using Portal .. just WSS2.0

Thanks
Title: How do I get to my page?   
Name: Jeff
Date: 2006-09-27 10:45:34 AM
Comment:
I followed the steps. I created a folder named "SPSAdmin" under "SPSTOC". I registered both ASPX files and copied the assempbly to "BIN". What is the URL to get to my page?
Title: Troubleshoot help   
Name: Adrian Crisan
Date: 2006-09-21 10:32:08 AM
Comment:
I followed the steps described in your article and I've changed the Topic template in order to include my very own ASP.NET page. But after I change the Onet.xml file, I cannot create anymore subareas in the Topics section, because an error occurs. Also, when I try to manage the content of an existing subarea from Topics (ex. Divisions) an error also ocurrs telling me that no area exists. Can you help me on this,

Thanks
Title: Yes   
Name: AP
Date: 2006-09-18 8:19:51 AM
Comment:
Yes. It works.
Title: Integration of .Net with Share Point Portal   
Name: Vaibhav
Date: 2006-09-18 2:46:44 AM
Comment:
does this code work with Windows SharePoint Services 2.0 installation?
Title: Security Issue   
Name: Ricardo Casquete
Date: 2006-09-05 11:56:04 AM
Comment:
After implementing it....

I have had to sign the project, increasy the assembly trust and add the dll to the GAC.
I am not sure if adding the assembly trust is necessary but I have been not able to do it without adding the dll to the GAC.

Regards and Thanks again ( 5 messages above ) for the Article

RicardoCasquete@hotmail.com
Title: Hi Arshad   
Name: Parag
Date: 2006-09-04 8:53:32 AM
Comment:
Hi arshad

How r u satisfied with above artcile

can u convey me the details

itsdinesh123@gmail.com
Title: Thanks..   
Name: Arshad
Date: 2006-09-04 1:43:08 AM
Comment:
This is the one am looking for!!!
Title: B.   
Name: Bobby Habib
Date: 2006-08-30 4:54:01 AM
Comment:
Top Boy. Good Atriticle.
Title: Mr   
Name: Girish
Date: 2006-08-25 11:50:27 AM
Comment:
This is interesting article , is there any way to put ATLAS
UpdatePanel in sharepoint site

Thanks in advance
Title: Integration of .Net with Share Point Portal   
Name: Dinesh
Date: 2006-08-18 6:00:12 AM
Comment:
This is better article I have ever found on Integration of .Net with Share Point Portal topic

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-28 9:38:28 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search