Click here to Skip to main content
15,913,225 members

Comments by Mir Usmanov (Top 13 by date)

Mir Usmanov 15-Jan-18 8:12am View    
All right phil.o thanks a lot
Mir Usmanov 9-Jan-18 10:39am View    
Thank you for your answer phil.o but the same as before, that is, if I continuously click the button, my player again freezes maybe animation cannot catch up with the click or something like that.
Mir Usmanov 31-Mar-17 23:44pm View    
Deleted
<!DOCTYPE html>


<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Index - My ASP.NET Application















Application name



Home
About
Contact









Index




Create New





















































































































































FirstName

LastName

DateOfBirth

PhoneNo

Salary

Email

BranchId

Botir

Qurbonov

05.05.1980 0:00:00

176-74-72

6000,00

bqodirov@example.com

1

Edit |
Details |
Delete

Aliev

Artur

11.11.1993 0:00:00

573-83-26

5000,00

aaliev@example.com

2

Edit |
Details |
Delete

Sayora

Asalova

11.01.1980 0:00:00

743-34-94

7000,00

sasalova@example.com

3

Edit |
Details |
Delete

Qurbon

Qurbonov

01.12.1985 0:00:00

663-57-74

6000,00

qqurbonov@example.com

1

Edit |
Details |
Delet
Mir Usmanov 31-Mar-17 23:33pm View    
Here is my RouteConfig:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace DBSD_CW2_00003454
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }

My _Layout.cshtml:
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>© @DateTime.Now.Year - My ASP.NET Application</p>
        </footer>
    </div>

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

My Edit.cshtml:
@model DBSD_CW2_00003454.Models.Employee

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Employee</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.EmployeeId)

        <div class="form-group">
            @Html.LabelFor(model => model.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.FirstName, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.LastName, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model =>
Mir Usmanov 31-Mar-17 21:11pm View    
Yes I tried to change paramenter to (int? id) but there appears error in GetEmployeeById(id) saying Argument 1 cannot convert from int? to int