This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports a couple of java tasks | |
apply plugin: "java" | |
// List available tasks in the shell | |
> gradle tasks | |
// A Closure that configures the sourceSets Task | |
// Sets the main folder as Source folder (where the compiler is looking up the .java files) | |
sourceSets { | |
main.java.srcDir "src/main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the value to which the specified key is mapped, | |
* or {@code null} if this map contains no mapping for the key. | |
*/ | |
public V get(Object key) { | |
if (key == null) | |
return getForNullKey(); | |
Entry<K,V> entry = getEntry(key); | |
return null == entry ? null : entry.getValue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h3>New Project options:</h3> | |
</div> | |
<div class="modal-body"> | |
<div class="row-fluid"> | |
<div class="control-group"> | |
Do you want to create new course or update existing course? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace LMSPriorTool.Helpers | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<!-- Project General Details Section --> | |
<div class="row span11"> | |
@Html.ActionLink("Create", "Create", "Project", | |
new { id = 1 }, | |
new { id = "btnCreate", @class = "btn btn-primary modal-link" }) | |
@Html.ActionLink("Edit", "Edit", "Project", | |
new { id = 1 }, | |
new { id = "btnAdd", @class = "btn btn-success modal-link" }) | |
@Html.ActionLink("Delete", "DeleteProject", "Home", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- other tags--> | |
@Styles.Render("~/Content/css", "~/Content/themes/base/css", "~/Content/bootstrap") | |
@Scripts.Render("~/bundles/modernizr") | |
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model DialogTest.ViewModels.DeleteConfirmationViewModel | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h3>Delete @Html.DisplayFor(x => x.HeaderText)</h3> | |
</div> | |
@using (Html.BeginForm(Model.PostDeleteAction, Model.PostDeleteController, FormMethod.Post, new { @class = "modal-form form-horizontal" })) | |
{ | |
@Html.ValidationSummary() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Objective: In this page, we will see how to populate a drop-down list on View in ASP.net MVC4. | |
Setup: Suppose you have a Project entity with two properties: | |
a) Project Name | |
b) Project Status (can be Active, Inactive, Inprogress etc.) | |
Models > Project.cs | |
public partial class Project | |
{ | |
// Scalar Properties |