Dropthings Series 2-project application cases

Source: Internet
Author: User
Dropthings is an open-source Ajax Personalized Portal Project Based on ASP. NET 3.5, Silverlight, jquery, LINQ to SQL, and Windows Workflow Foundation (WCF. In this article, we will introduce how to introduce this project to the project step by step. The author states: This is just a personal project, excluding commercial and enterprise projects. For instructions on project use, see the license of Omar Al zabir on dropthings. In the event of any violation, the author of this article shall not assume any legal liability. Dropthings Technologies usedASP. NET 3.5jqueryasp.net Ajax (. NET 3.5) silverlightlinq to sqllinq to xmlioc, inversion of control, inversion control dependency injection Enterprise Library open source project: For aspect programming, aspectf Dropthings Application EnvironmentVs 2008/vs2008 sp1sql Server 2005/SQL Server 2008 express and SP1/SQL Server 2008 Microsoft Silverlight 3 tools for Visual Studio 2008 SP1 Dropthings Application ProcessThe dropthings project is applied to an existing project. We use the following simulation scenarios: Development Environment: VS 2008 SP1, SQL Server 2008, and Silverlight: integrate the Personalized Portal Project in the dropthings project into a personal project, that is, to integrate the dropthings project in the downloaded source code. The entire application process is divided into five steps. (1) download the source code: unzip download decompressed in, click the SRC folder, open all the source code, as shown in: FIG dropthings source code in, you can use vs 2008 to open the Dropthings-VS2008.sln, after the entire solution is compiled, all the DLL files are generated under \ SRC \ dropthings \ bin. NOTE: If Microsoft Silverlight 3 tools for Visual Studio 2008 SP1 is not installed, dropthings. diggsilverlight loading will fail when you open the project. You don't have to worry about this. Install Silverlight 3.

(2) Add the dropthings Project

After compiling the DLL, we can copy the dropthings folder separately and add it to the existing project as a display layer project. The effect is shown in: figure 3 add a dropthings project to an existing project after adding a database to the dropthings project, we need to restore the database. There are two ways to restore the database, one is to use the database creation script, and the other is to directly restore the existing database files. The path of the database file is under the \ SRC \ dropthings \ app_data \ file, as shown in the following figure: Figure dropthings database is shown in, in the SQL Server 2005 environment, you can create a new database, or use database files for restoration. We recommend that you use the latter method for restoration, because the necessary initialization data and test data have been stored in the restored database, the stored data format can be determined based on the existing data. (4) The development window tool (widgets) uses pages on the dropthings display layer page. The window tool (widgets) is similar to the webpart in SharePoint and is an encapsulation display of specific functional modules, of course, this is not just a presentation, but a functional block at the presentation layer. Dropthings has provided some window tools (widgets) for secondary development, such as diggwidget using Silverlight; htmlwidget using HTML; rsswidget using RSS; weatherwidget using weather; IFRAME iframewidget, among these widgets, iframewidget is most commonly used for integrated project development. The process of using iframewidget for integrated development will be detailed in subsequent articles. (5) update the database. Use the window tool (widgets) on the page. here we need to assume that we have completed Step 1 and developed a page for some widgets, the page using the window tool (widgets) is used as an example of a widget. The next step is to input the basic data information of this instance into the database recovered in step 1, in this way, we can use it on the portal. This article focuses on the application steps and describes how to restore Data in subsequent articles. Summary there are five steps to apply dropthings to a personal project: Download the source code, compile the source code, restore the database, develop the application page, and add the widgets instance data. After clarifying the five steps and the tasks of each step, it is much easier to apply dropthings to personal projects.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.