31 lines
657 B
Plaintext
31 lines
657 B
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.UserControl" %>
|
|
<%@ Import Namespace="OurUmbraco.Documentation.Busineslogic.GithubSourcePull" %>
|
|
|
|
<script runat="server">
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
|
|
GetDocsButton.Click += GetDocsButton_Click;
|
|
}
|
|
|
|
protected string Status = "";
|
|
|
|
void GetDocsButton_Click(object sender, EventArgs e)
|
|
{
|
|
ZipDownloader.EnsureGitHubDocs(true);
|
|
Status = "Done!";
|
|
}
|
|
|
|
</script>
|
|
|
|
<div>
|
|
|
|
<asp:Button runat="server" ID="GetDocsButton" Text="Get Docs!!"/>
|
|
|
|
<p>
|
|
<%= Status %>
|
|
</p>
|
|
|
|
</div> |