Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » Ajax » Atlas » Downloads
 
Add your own
alternative version

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

, 10 Mar 2010
Build a Start Page similar to Google IG in 7 nights using ASP.NET AJAX, .NET 3.0, LINQ, DLinq, and XLinq.
Prize winner in Competition "ASP.NET Dec 2006"
dashboard.zip
src
bin
AjaxControlToolkit.dll
CustomDragDrop
Dashboard
App_Code
App_Data
App_Themes
Default
google.gif
HeaderBack.PNG
Logo.png
max_blue.gif
max_blue_highlight.gif
min_blue.gif
min_blue_highlight.gif
x_blue.gif
x_blue_highlight.gif
Bin
AjaxControlToolkit.dll
CSharp3CodeDomProvider.dll
Global.asax
indicator.gif
vwd.webinfo
Widgets
FlickrIcon.gif
rss.gif
DashboardBusiness
Activities
CreateDeafultWidgetsOnPageActivity.rules
DashboardBusiness.csproj.user
NewUserSetupWorkflow.rules
Properties
UserVisitWorkflow.rules
DashboardData
Properties
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Widgets_WidgetTester : System.Web.UI.UserControl, IWidget
{
    private IWidgetHost _Host;

    public IWidgetHost Host
    {
        get { return _Host; }
        set { _Host = value; }
    }
	
    protected void Page_Load(object sender, EventArgs e)
    {
        if( this.Host.IsFirstLoad )
        {
            Message.Text += "First Load. ";
            Data.Text = this.Host.GetState();
        }
    }

    void IWidget.Init(IWidgetHost host)
    {
        this.Host = host;
    }

    void IWidget.ShowSettings()
    {
        SettingsPanel.Visible = true;
        Message.Text += "Show Settings panel. ";
    }
    void IWidget.HideSettings()
    {
        SettingsPanel.Visible = false;
        Message.Text += "Hide Settings panel. ";
    }
    void IWidget.Minimized()
    {
        Message.Text += "Minimized. ";
    }
    void IWidget.Maximized()
    {
        Message.Text += "Maximized. ";
    }
    void IWidget.Closed()
    {
        Message.Text += "Closed. ";
    }

    protected void SettingsButton_Click( object sender, EventArgs e )
    {
        Message.Text += "Settings Button Clicked. ";
    }
    protected void CloseSettings_Click( object sender, EventArgs e )
    {
        Message.Text += "CloseSettings Clicked. ";
        (this as IWidget).HideSettings();
    }
    protected void ExpandWidget_Click( object sender, EventArgs e )
    {
        Message.Text += "ExpandWidget Clicked. ";
        this.Host.Maximize();
    }
    protected void CollapseWidget_Click( object sender, EventArgs e )
    {
        Message.Text += "CollapseWidget Clicked. ";
        this.Host.Minimize();
    }
    protected void CloseWidget_Click( object sender, EventArgs e )
    {
        Message.Text += "CloseWidget Clicked";
        this.Host.Close();
    }
    
    protected void Save_Click( object sender, EventArgs e )
    {
        Message.Text += "State Saved";
        
        this.Host.SaveState( Data.Text );
    }
    
}

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)

About the Author


| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 10 Mar 2010
Article Copyright 2007 by Omar Al Zabir
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid