-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault.aspx
92 lines (80 loc) · 2.82 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style1 {
font-size: large;
}
.auto-style3 {
width: 492px;
}
.auto-style4 {
height: 26px;
width: 492px;
}
.auto-style5 {
width: 207px;
}
.auto-style6 {
height: 26px;
width: 207px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<table style="width:70%; margin-left:100px;" >
<tr>
<td colspan="2">
<span class="auto-style1"><strong>Azure Event Hub Shared Access Signature Generator</strong></span><hr />
</td>
</tr>
<tr>
<td class="auto-style5">Namespace</td>
<td class="auto-style3">
<asp:TextBox ID="txtNamespace" runat="server" Width="506px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style5">Event Hub name</td>
<td class="auto-style3">
<asp:TextBox ID="txtEventHub" runat="server" Width="505px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style5">Policy Name (Sender)</td>
<td class="auto-style3">
<asp:TextBox ID="txtPolicyName" runat="server" Width="505px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style6">Policy Key</td>
<td class="auto-style4">
<asp:TextBox ID="txtPolicyKey" runat="server" Width="505px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style5">Token TTL (Minutes) </td>
<td class="auto-style3">
<asp:TextBox ID="txtTTL" runat="server" Width="505px" TextMode="Number">60</asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style5"> </td>
<td class="auto-style3">
<asp:Button ID="btnGenerate" runat="server" Text="Generate Signature" OnClick="btnGenerate_Click" />
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://github.com">Source Code</asp:HyperLink>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblResult" runat="server"></asp:Label>
</td>
</tr>
</table>
</form>
</body>
</html>