Click here to Skip to main content
15,888,610 members
Articles / Web Development / ASP.NET

Project Management Using Gantt Chart

Rate me:
Please Sign up or sign in to vote.
4.91/5 (46 votes)
23 Apr 2012CPOL5 min read 120.7K   7.7K   81  
A simple way to manage a project and show progress on a Gantt chart.
<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Block.aspx.cs" Inherits="Block" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"  tagprefix="ajaxtoolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
        <style type="text/css">

        .style1
        {
            width: 100%;
        }
        .style3
        {
            width: 122px;
            height: 33px;
        }
        .style4
        {
            height: 33px;
        }
        .style2
        {
            width: 122px;
        }
        .style5
        {
            width: 122px;
            height: 27px;
        }
        .style6
        {
            height: 27px;
        }
        </style>

</head>
<body>
    <form id="form1" runat="server">
      
    <ajaxtoolkit:toolkitscriptmanager   EnableViewState="true"  ID="ScriptManager1" runat="server">
</ajaxtoolkit:toolkitscriptmanager>
        <table class="style1">
            <tr>
                <td class="style5">
                    Project Name:</td>
                <td class="style6">
            <asp:DropDownList ID="ddListProject"  runat="server" Width="170" />
                            <br />
         
 
                </td>
                <td class="style6">
                    </td>
            </tr>
            <tr>
                <td class="style3">
                    Group Name:</td>
                <td class="style4">
    <asp:DropDownList ID="ddListGroup"  runat="server"  Width="170" style="margin-bottom: 6px" />
                    
  </td>
                <td class="style4">
                    </td>
            </tr>
            <tr>
                <td class="style2">
                    Block&nbsp; Name:</td>
                <td>
<asp:TextBox ID="txtBlock"  runat="server" Height="21px" 
            Width="142px"></asp:TextBox>


  
                        </td>
                

<ajaxtoolkit:autocompleteextender ID="txtBlock_AutoCompleteExtender" runat="server"
  EnableCaching="true"
  BehaviorID="AutoCompleteEx"
  MinimumPrefixLength="2"
  TargetControlID="txtBlock"
  ServicePath="GroupAutoComplete.asmx"
  ServiceMethod="GetCompletionList" 
  CompletionInterval="1000"  
  CompletionSetCount="20"
  DelimiterCharacters=";, :"
  ShowOnlyCurrentWordInCompletionListItem="true">
 
  </ajaxtoolkit:autocompleteextender>
  
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    Start Date:</td>
                <td>
<asp:TextBox ID="txtStartDate" runat="server" TabIndex="14"></asp:TextBox></td>
     </td>
                <td>
                    
                        </td>
            </tr>
            <tr>
                <td class="style2">
                    End Date: </td>
                <td>
                    <asp:TextBox ID="txtEndDate" runat="server" TabIndex="14"></asp:TextBox></td>
                <td>
    <ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddListProject"
             Category="Project"  PromptText="Please select a Project"  LoadingText="[Loading Project...]"
            ServicePath="Cascading.asmx" ServiceMethod="GetProjects" ></ajaxToolkit:CascadingDropDown>
            
    <ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddListGroup"
            Category="Group" PromptText="Please select a Group" LoadingText="[Loading Group...]"
         servicePath="Cascading.asmx" ServiceMethod="GetGroups" ParentControlID="ddListProject" ></ajaxToolkit:CascadingDropDown>
         
 
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Button ID="btn_Save" runat="server" Text="Save" onclick="btn_Save_Click" />
                    </td>
                <td>
                    

                  
                    
                  
                </td>
                <td>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:MyDBConnectionString %>" 
                        SelectCommand="SELECT * FROM [tblProject]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
<ajaxtoolkit:calendarextender ID="CalendarStartDate" runat="server" TargetControlID="txtStartDate"></ajaxtoolkit:calendarextender>
                

                </td>
                <td>
<ajaxtoolkit:calendarextender ID="CalendarEndDate" runat="server" TargetControlID="txtEndDate"></ajaxtoolkit:calendarextender>
                </td>
            </tr>
        </table>

    </form>
</body>
</html>

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
Doctorandin Technische Universität Berlin
Iran (Islamic Republic of) Iran (Islamic Republic of)
I have been working with different technologies and data more than 10 years.
I`d like to challenge with complex problem, then make it easy for using everyone. This is the best joy.

ICT Master in Norway 2013
Doctorandin at Technische Universität Berlin in Data Scientist ( currently )
-------------------------------------------------------------
Diamond is nothing except the pieces of the coal which have continued their activities finally they have become Diamond.

http://www.repocomp.com/

Comments and Discussions