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
(function() { | |
localStorage.removeItem("gfgViewCount") | |
})(); |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
<script src="./script.js" type="text/babel"></script> | |
</head> |
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
[RestrictSpecialCharacters] | |
public string BookName { get; set; } |
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 static class MvcBeginForm | |
{ | |
public static MvcForm HtmlBeginSecureForm(this HtmlHelper htmlHelper, string actionName, string controllerName, object routeValues) | |
{ | |
var form = htmlHelper.BeginForm(actionName, controllerName); | |
htmlHelper.ViewContext.Writer.Write(htmlHelper.AntiForgeryToken().ToHtmlString()); | |
return form; | |
} | |
public static MvcForm HtmlBeginSecureForm(this HtmlHelper htmlHelper, string actionName, string controllerName) |
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
//FilterProviders.Providers.Add(new AntiforgeryTokenFilter()); Add this to filterproviders | |
public class AntiforgeryTokenFilter : IFilterProvider | |
{ | |
public IEnumerable<Filter> GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) | |
{ | |
List<Filter> filterSet = new List<Filter>(); | |
// ValidateAntiForgeryToken for POST requests + | |
// Skip Actions with UnValidateAntiForgeryToken | |
string verb = controllerContext.HttpContext.Request.HttpMethod; |
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
/* From: http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height */ | |
/* columns of same height styles */ | |
.container-xs-height { | |
display:table; | |
padding-left:0px; | |
padding-right:0px; | |
} | |
.row-xs-height { | |
display:table-row; |