Reputation: 429
I just started learning SharePoint 2010. I have an existing ASP.Net web application that I want to re-write as a SharePoint 2010 application. It's a small database driven application that also uses JQuery JSON calls to record some user activity. I believe I need to create custom web parts to achieve my goal. Can you please shade some light on the following questions?
Thanks
Upvotes: 1
Views: 3365
Reputation: 1522
I think that BCS is one answer, but not necessarily "the answer." If your existing app has code that connects to the database in question and/or code for rendering what you want on the screen then you may be able to reuse this more or less as is e.g. in the code-behind of a web part, in the code-behind of an application page, etc.
One area where BCS offers value is in being able to easily expose your data to the search engine. However, in this case each row in the db is treated equivalently to an item in a list, which may create a scale limit for larger applications.
Upvotes: 1
Reputation: 464
Sharepoint is a webapplication based on asp.net so I think you have two choices:
use a regular code and asp.net controls to connect to the database
SPContext.Current.Web.CurrentUser;
use external lists
Upvotes: 2
Reputation: 2104
Basically you will have three layers: SharePoint Srever; Web services and SQL Server.
You will need: 1. A web service that exposes your SQL data as external content type. How to: Create an External Content Type Based on a Web Service 2. A visual web part in which you will supply parameters to and call the service.
Upvotes: 2