Created
September 19, 2011 09:21
-
-
Save kkozmic/1226196 to your computer and use it in GitHub Desktop.
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
// this... | |
<a href="@Model.GithubAddHookUrl" target="_blank" class="btn small">Go to Github</a> | |
// ...or this ... | |
@Html.ButtonLink(Model.GithubAddHookUrl, "Go to Github") | |
// ...or perhaps this? (via extension method) | |
@Model.GithubAddHookUrl.ButtonLink("Go to Github") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would use
< a href='@Model.GithubAddHookUrl' class='github-button'>Whatever< /a>
As the text might vary, and the Url might too - the CSS part is the reusability
YMMV