• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

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

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
mmedi005
Asked:
mmedi005
  • 6
  • 5
1 Solution
 
chapmanjwCommented:
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
 
mmedi005Author Commented:
will i be able to use sharepoints features in my site if i go with option 1?
0
 
mmedi005Author Commented:
will i be able to use sharepoints features in my site if i go with option 1?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
chapmanjwCommented:
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
 
mmedi005Author Commented:
Im looking to write with ASP .NET and c#.

Could I do that if I went with option 2?
0
 
mmedi005Author Commented:
Im looking to write with ASP .NET and c#.

Could I do that if I went with option 2?
0
 
chapmanjwCommented:
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
 
mmedi005Author Commented:
could i create it in vs first, then copy code over to sharepoint?
0
 
chapmanjwCommented:
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
 
mmedi005Author Commented:
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
 
chapmanjwCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now