Click here to Skip to main content
15,880,392 members
Articles / Web Development / HTML

Build a Google IG like AJAX Start Page in 7 days using ASP.NET AJAX and .NET 3.0

Rate me:
Please Sign up or sign in to vote.
4.80/5 (325 votes)
10 Mar 2010CPOL38 min read 1.8M   7.8K   1.1K  
Build a Start Page similar to Google IG in 7 nights using ASP.NET AJAX, .NET 3.0, LINQ, DLinq, and XLinq.
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace DashboardBusiness
{
	partial class UserVisitWorkflow
	{
		#region Designer generated code
		
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            this.ReturnUserPageSetup = new System.Workflow.Activities.CodeActivity();
            this.GetWidgetsInCurrentPage = new DashboardBusiness.Activities.GetWidgetsInPageActivity();
            this.GetUserSetting = new DashboardBusiness.Activities.GetUserSettingActivity();
            this.GetUserPages = new DashboardBusiness.Activities.GetUserPagesActivity();
            this.GetUserGuid = new DashboardBusiness.Activities.GetUserGuidActivity();
            // 
            // ReturnUserPageSetup
            // 
            this.ReturnUserPageSetup.Name = "ReturnUserPageSetup";
            this.ReturnUserPageSetup.ExecuteCode += new System.EventHandler(this.ReturnUserPageSetup_ExecuteCode);
            // 
            // GetWidgetsInCurrentPage
            // 
            this.GetWidgetsInCurrentPage.Name = "GetWidgetsInCurrentPage";
            activitybind1.Name = "GetUserSetting";
            activitybind1.Path = "UserSetting.CurrentPageId";
            activitybind2.Name = "GetUserGuid";
            activitybind2.Path = "UserGuid";
            this.GetWidgetsInCurrentPage.WidgetInstances = null;
            this.GetWidgetsInCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(DashboardBusiness.Activities.GetWidgetsInPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.GetWidgetsInCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(DashboardBusiness.Activities.GetWidgetsInPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetUserSetting
            // 
            this.GetUserSetting.CurrentPage = null;
            this.GetUserSetting.Name = "GetUserSetting";
            activitybind3.Name = "GetUserGuid";
            activitybind3.Path = "UserGuid";
            this.GetUserSetting.UserSetting = null;
            this.GetUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(DashboardBusiness.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // GetUserPages
            // 
            this.GetUserPages.Name = "GetUserPages";
            activitybind4.Name = "UserVisitWorkflow";
            activitybind4.Path = "UserPages";
            activitybind5.Name = "GetUserGuid";
            activitybind5.Path = "UserGuid";
            this.GetUserPages.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(DashboardBusiness.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.GetUserPages.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Pages", typeof(DashboardBusiness.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Description = "name";
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind6.Name = "UserVisitWorkflow";
            activitybind6.Path = "UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(DashboardBusiness.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // UserVisitWorkflow
            // 
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.GetUserPages);
            this.Activities.Add(this.GetUserSetting);
            this.Activities.Add(this.GetWidgetsInCurrentPage);
            this.Activities.Add(this.ReturnUserPageSetup);
            this.Name = "UserVisitWorkflow";
            this.CanModifyActivities = false;

		}

		#endregion

        private CodeActivity ReturnUserPageSetup;
        private DashboardBusiness.Activities.GetUserSettingActivity GetUserSetting;
        private DashboardBusiness.Activities.GetWidgetsInPageActivity GetWidgetsInCurrentPage;
        private DashboardBusiness.Activities.GetUserPagesActivity GetUserPages;
        private DashboardBusiness.Activities.GetUserGuidActivity GetUserGuid;


























































    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions