Solved

Can you insert a pre existing ASP .NET website into SharePoint 2010?

Posted on 2010-09-16
11
439 Views
Last Modified: 2012-05-10
I have a intranet website that is highly used.  I am interested in using SharePoint 2010 but want to be able to use the current website in SharePoint 2010.  The website is written with ASP .NET in C#.

Can you insert a pre existing ASP .NET website into SharePoint 2010?

How do you do this?
0
Comment
Question by:mmedi005
  • 6
  • 5
11 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33694287
You can do one of two things:

1) Host the other web application on the same server, but in a different web application in IIS on a different port or different host header.

or

2) Repurpose the code from the web application into SharePoint web parts and add them to a SharePoint site.
0
 

Author Comment

by:mmedi005
ID: 33694357
will i be able to use sharepoints features in my site if i go with option 1?
0
 

Author Comment

by:mmedi005
ID: 33694358
will i be able to use sharepoints features in my site if i go with option 1?
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33694394
No.

It would operate as an independent application and you would only have access to SharePoint content if you wrote it into the application to use the SharePoint web services, etc.
0
 

Author Comment

by:mmedi005
ID: 33694436
Im looking to write with ASP .NET and c#.

Could I do that if I went with option 2?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:mmedi005
ID: 33694437
Im looking to write with ASP .NET and c#.

Could I do that if I went with option 2?
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33694466
Yes, SharePoint web parts are 100% .NET and you can use C# or VB.

Here is a sample tutorial on writing web parts for SharePoint: http://www.codeguru.com/csharp/.net/net_asp/webforms/article.php/c12293/

The big difference from traditional ASP.NET web site coding is that with web parts you are creating everything from code, rather than from the Visual Studio GUI in the .aspx file.  
0
 

Author Comment

by:mmedi005
ID: 33694514
could i create it in vs first, then copy code over to sharepoint?
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33694541
You create it completely in VS and then deploy your code to SharePoint.

In VS you will be creating a web part class library that contains all of your code.  It will generate a DLL file that you will deploy the SharePoint.  The tutorial will walk you through that.
0
 

Author Comment

by:mmedi005
ID: 33695112
would be nice if i could just write an ASP .NET web page and somehow be able to run it through the SharePoint environment without having to create web parts.

To recreate an entire web page into web parts and then recreating a large website on top of that will not help.

The 2 should be easy to integrate.

Thanks for the help...I think I will leave SharePoint alone for now.
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33695657
You can run them separately and take advantage of SharePoint features in the web application through the web services SharePoint has to offer, but it wouldn't be fully integrated as you are looking to do.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now