Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created September 19, 2011 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkozmic/1226196 to your computer and use it in GitHub Desktop.
Save kkozmic/1226196 to your computer and use it in GitHub Desktop.
// 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")
@jakcharlton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment