This file contains hidden or 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
public class Person : IValidatableObject | |
{ | |
public string Name { get; set; } | |
public string Nickname { get; set; } | |
public string Password { get; set; } | |
public string PasswordConfirm { get; set; } | |
public int Age { get; set; } | |
public IEnumerable<ValidationResult> Validate( | |
ValidationContext validationContext) |
This file contains hidden or 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
GlobalFilters.Filters.Add(new LoggingFilter()); |
This file contains hidden or 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> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>jQuery Mobile</title> | |
<link href="Styles/jquery.mobile-1.0a1.css" rel="stylesheet" type="text/css" /> | |
<script src="Scripts/jquery-1.4.3.js" type="text/javascript"></script> | |
<script src="Scripts/jquery.mobile-1.0a1.js" type="text/javascript"></script> | |
</head> | |
<body> |
This file contains hidden or 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> |
This file contains hidden or 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
<link href="Styles/jquery.mobile-1.0a1.css" rel="stylesheet" type="text/css" /> | |
<script src="Scripts/jquery-1.4.3.js" type="text/javascript"></script> | |
<script src="Scripts/jquery.mobile-1.0a1.js" type="text/javascript"></script> |
This file contains hidden or 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 data-role="page"> | |
<div data-role="header"> | |
<h1>Page 1</h1> | |
<a href="#about">Page 2</a> | |
</div> | |
<div data-role="content">Page 1 Content</div> | |
</div> | |
<div data-role="page" id="about"> | |
<div data-role="header"> | |
<h1>Page 2</h1> |
This file contains hidden or 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
<%=Html.ActionLink("Edit", "Person", new { id = 12 }) %> |
This file contains hidden or 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
<% Html.RenderPartial("DinnerForm"); %> | |
<% Html.RenderPartial(MVC.Dinners.Views.DinnerForm); %> |
This file contains hidden or 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
return View("InvalidOwner"); | |
return View(Views.InvalidOwner); |
This file contains hidden or 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
<%= Html.ActionLink("Delete Dinner", "Delete", "Dinners", new { id = Model.DinnerID }, null)%> | |
<%= Html.ActionLink("Delete Dinner", MVC.Dinners.Delete(Model.DinnerID))%> |