<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @{}
    <script src="~/Scripts/jquery-1.8.2.js"></script>
    <link href="~/Content/style.css" rel="stylesheet" />

    <script>
        $(function () {
            var pull = $('#pull');
            menu = $('nav ul');
            menuHeight = menu.height();
            $(pull).on('click', function (e) {
                e.preventDefault();
                menu.slideToggle();
            });
            $(window).resize(function () {
                var w = $(window).width();
                if (w > 320 && menu.is(':hidden')) {
                    menu.removeAttr('style');
                }
            });
        });
    </script>

    <style>
        article
        {
            padding: 5px;
            margin-top: 5px;
        }

        header
        {
            padding: 0px;
            text-align: center;
        }

        aside
        {
            margin-top: 5px;
            padding: 5px;
            text-align: right;
            font-style: italic;
        }

        section
        {
            padding: 5px;
            margin-top: 5px;
        }

        footer
        {
            padding: 5px;
            text-align: center;
            font-weight: bold;
        }
    </style>

</head>
<body>

    <!--------Header star----------->
    <header style="">
        <img src="~/StudentImg/Laxman.png" style="height: 40px; float: left;" />
        <h4>Laxman Software Engineer Working on Microsoft Latest Technologies at Swiftsofteareservices</h4>
    </header>
    <!--------Header end----------->

    <!--------Navigation start----------->
    <nav class="clearfix">
        <ul class="clearfix">
            <li><a href="~/Home/index">Home</a></li>
            @if (TempData["Email"] != null && TempData["Pwd"] != null)
            {
                var studentID = TempData["MyID"];
                <li><a href="@Url.Action("UpdateStudentRegistartion", "Home", new { @studentID = @TempData["MyID"] })">Update</a></li>
                <li><a href="@Url.Action("Delete", "Home", new { id = @TempData["MyID"] })">Delete</a></li>
                <li><a href="~/Home/Signout">LogOut</a></li>
            }
            else
            {
                <li><a href="~/Home/CreatStudentRegistartion">Register</a></li>
                <li><a href="#">Contact Us</a></li>                
            }
            <li><a href="#">About Us</a></li>
        </ul>
        <a href="#" id="pull">Menu</a>
    </nav>

    <!--------Navigation end----------->

    @RenderBody()

    <footer>
        Developed by laxman &copy; @DateTime.Now.Year.
    </footer>

    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
</body>




</html>
