Including Your Own ASP.NET Pages in Your SharePoint Portal
page 5 of 6
by Ameet Phadnis
Feedback
Average Rating: 
Views (Total / Last 10 Days): 33202/ 507

Copy the assembly file to bin folder of the Portal

With the above sections, we have made the SharePoint Portal aware that some external pages are being used in the portal.  But how do we run the functionality behind the pages?  We need to store the assembly file inside the Portal.  This is the easiest part of this whole procedure.  Simply go to the site where your portal is created.  For example, if your portal is called CorporatePortal, then your folder structure might be c:\WebSites\CorporatePortal.  You simply need to copy the assembly file in the bin directory under c:\WebSites\CorporatePortal.  In normal circumstances the bin directory does not exist.  If it does not, you can just create the bin folder and drop the assembly file in it.

If your code needs to reference any sections from the configuration file, you can always edit the Web.Config for your portal and add the sections there.  For example, you might be interested in adding database connection information.  You can add the following section in the Web.Config file.

Listing 5

<appSettings>
  <add key="AmeetArticle" value="Server=AAPW2003SHAREPO;Database=Employee;uid=Employee;pwd=EmployeeTest;" />
</appSettings>

The final step is to do iisreset.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 7 and 1 and type the answer here:

User Comments

Title: asp.net page in sp   
Name: d.ramakrishareddy
Date: 9/20/2008 12:20:01 PM
Comment:
verygood
plese put source code for every thing in sp
Title: Web Design   
Name: Lukei
Date: 5/1/2008 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: 4/18/2008 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: 4/1/2008 2:23:53 AM
Comment:
Its nice article...I learn it.
Title: Integrating ASP .Net pages with SharePoint server   
Name: Kalpana
Date: 12/28/2007 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: 10/19/2007 1:45:02 AM
Comment:
That was really helpful
Title: asp.net page in sharepoint   
Name: Christine
Date: 10/5/2007 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: 9/13/2007 12:13:30 AM
Comment:
Fine.
Title: mr   
Name: nurul
Date: 8/27/2007 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: 8/27/2007 4:20:50 AM
Comment:
\
\
Title: CodeBehind   
Name: Emrah
Date: 7/5/2007 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: 12/2/2006 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: 11/22/2006 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: 10/24/2006 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: 10/24/2006 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: 10/6/2006 3:02:25 AM
Comment:
this is what actually i am looking for .
thankz
Title: How do I reach my page?   
Name: JF
Date: 9/29/2006 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: 9/27/2006 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: 9/21/2006 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: 9/18/2006 8:19:51 AM
Comment:
Yes. It works.
Title: Integration of .Net with Share Point Portal   
Name: Vaibhav
Date: 9/18/2006 2:46:44 AM
Comment:
does this code work with Windows SharePoint Services 2.0 installation?
Title: Security Issue   
Name: Ricardo Casquete
Date: 9/5/2006 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: 9/4/2006 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: 9/4/2006 1:43:08 AM
Comment:
This is the one am looking for!!!
Title: B.   
Name: Bobby Habib
Date: 8/30/2006 4:54:01 AM
Comment:
Top Boy. Good Atriticle.
Title: Mr   
Name: Girish
Date: 8/25/2006 11:50:27 AM
Comment:
This is interesting article , is there any way to put ATLAS
UpdatePanel in sharepoint site

Thanks in advance
Title: Very Good Article....   
Name: Ricardo Casquete
Date: 8/23/2006 10:03:50 AM
Comment:
thats it...
Title: Integration of .Net with Share Point Portal   
Name: Dinesh
Date: 8/18/2006 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 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






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


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 10/11/2008 3:55:07 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search