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
@addTagHelper *, TagHelperSuite |
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
<form asp-page-handler="Post"> | |
<link-button>Test Link</link-button> | |
</form> |
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
<asp:LinkButton ID="lbtnSubmit" runat="server" PostBackUrl="~/About.aspx" Text="Submit Form" /> |
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
<form method="post"> | |
<button asp-page="/Index" asp-page-handler="Post">Submit Form</button> | |
</form> |
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
public class IndexModel : PageModel | |
{ | |
public void OnGet() | |
{ | |
} | |
public void OnPost() | |
{ | |
} | |
} |
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
{ | |
"webroot": "build" | |
} |
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
public static JObject GetWebpackAssetsJson(string applicationBasePath) | |
{ | |
JObject webpackAssetsJson = null; | |
string packageJsonFilePath = $"{applicationBasePath}\\{"package.json"}"; | |
using (StreamReader packageJsonFile = File.OpenText(packageJsonFilePath)) | |
{ | |
using (JsonTextReader packageJsonReader = new JsonTextReader(packageJsonFile)) | |
{ | |
JObject packageJson = (JObject)JToken.ReadFrom(packageJsonReader); |
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
{ | |
"version": "0.1.0", | |
"command": "${workspaceRoot}/node_modules/.bin/webpack", | |
"isShellCommand": true, | |
"args": [ | |
"--display-modules", | |
"--progress" | |
], | |
"echoCommand": true, | |
"tasks": [ |
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 static TagHelpersDemo.TagHelpers.CardTagHelper | |
@{ | |
ViewData["Title"] = "Home Page"; | |
} | |
<div class="clearfix"> </div> | |
<hand player="John"> | |
<card suit="@CardSuit.Heart" rank="@CardRank.Ace"></card> |
NewerOlder