Click here to Skip to main content
15,896,269 members
Articles / Web Development / HTML

ASP.NET MVC Application in Action - I (DailyJournal)

Rate me:
Please Sign up or sign in to vote.
4.84/5 (17 votes)
7 Jun 2010CPOL5 min read 65.8K   1.3K   64  
A simple visual task manager application using ASP.NET MVC and jQuery.
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/redmond/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/taskform.css" rel="stylesheet" type="text/css" />
    
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    
    <script src="../../Scripts/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>
   
    <asp:ContentPlaceHolder ID="HeadContent" runat="server" />
    
</head>

<body>
    <div class="page">

        <div id="header">
            <div id="title">
                <h1>Daily Journal (todo)</h1>
            </div>
              
            <div id="logindisplay">
                <% Html.RenderPartial("LogOnUserControl"); %>
            </div> 
            
            <div id="menucontainer">
                <ul id="menu">              
                    <li><%= Html.ActionLink("Dashboard", "Index", "Dashboard")%></li>
                    <li><%= Html.ActionLink("About", "About", "Dashboard")%></li>
                </ul>
            
            </div>
        </div>
        <br />

        <div id="main">
            <asp:ContentPlaceHolder ID="MainContent" runat="server" />

            <div id="footer">
            </div>
            
           <div id = "loading-panel">
                <table width="100%" style="text-align:center">
                <tr valign="middle"><td valign="middle" style="width:100%"><img alt="loading" id="img-loading" src="/Content/Images/ajax-loader.gif" /></td></tr>
                </table>
               <div>Loading..</div>
           </div>

        </div>
    </div>

    <script type="text/javascript">

        $(function() {
            $("#loading-panel").dialog({
                autoOpen: false,
                bgiframe: true,
                height: 140,
                modal: true,
                resizable: false,
                dialogClass: "hide-title-bar"
            });

            $("#loading-panel .ui-dialog-titlebar").hide();

        });

    </script>
</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
Founder Algorisys Technologies Pvt. Ltd.
India India
Co Founder at Algorisys Technologies Pvt. Ltd.

http://algorisys.com/
https://teachyourselfcoding.com/ (free early access)
https://www.youtube.com/user/tekacademylabs/

Comments and Discussions