Skip to content
Browse files

client side: link to networks in nav bar

  • Loading branch information...
1 parent fb889e5 commit 0426a04df37f7a14db8c054e4db83e1cc7d59fb3 @Martikos Martikos committed Apr 23, 2013
Showing with 23 additions and 6 deletions.
  1. +8 −1 Views/Layout.master
  2. +4 −0 Views/Layout.master.cs
  3. +8 −5 Views/Private/Networks.aspx
  4. +3 −0 Views/Private/Networks.aspx.cs
View
9 Views/Layout.master
@@ -87,7 +87,14 @@
<asp:LinkButton ID="nav_notifications" runat="server" OnClick="go_notifications">
<span class="nav_icon">h</span>
<span class="nav_text">Messages</span>
- </asp:LinkButton></li>
+ </asp:LinkButton>
+ </li>
+ <li>
+ <asp:LinkButton ID="nav_networks" runat="server" OnClick="go_networks">
+ <span class="nav_icon">q</span>
+ <span class="nav_text">Networks</span>
+ </asp:LinkButton>
+ </li>
</ul>
</nav>
</div>
View
4 Views/Layout.master.cs
@@ -25,6 +25,10 @@ protected void search_query(object sender, EventArgs e)
protected void go_search(object sender, EventArgs e)
{
Response.Redirect("~/Views/Search.aspx");
+ }
+ protected void go_networks(object sender, EventArgs e)
+ {
+ Response.Redirect("~/Views/Private/Networks.aspx");
}
protected void go_post(object sender, EventArgs e)
{
View
13 Views/Private/Networks.aspx
@@ -2,9 +2,9 @@
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
- <table>
+ <table align="center">
<tr>
- <td>
+ <td style="width: 400px;">
Search For Networks<br />
<br />
<asp:TextBox ID="Network_Search" runat="server" ></asp:TextBox>
@@ -27,11 +27,14 @@
<br />
<asp:Label ID="ErrorMessage" runat="server"></asp:Label>
</td>
- <td>
- <asp:TextBox ID="addnetwork_name" runat="server" Visible="False"></asp:TextBox><br />
- <asp:TextBox ID="addnetwork_pattern" runat="server" Visible="False"></asp:TextBox><br />
+ <td style="width: 300px">
+ <asp:Label ID="networklabel" runat="server" Text="Create Your Network"></asp:Label>
+ <fieldset>
+ <asp:Label ID="networklabel_name" class="form_label" runat="server" Text="Name"></asp:Label><asp:TextBox ID="addnetwork_name" runat="server" Visible="False"></asp:TextBox><br />
+ <asp:Label ID="networklabel_pattern" class="form_label" runat="server" Text="Pattern"></asp:Label><asp:TextBox ID="addnetwork_pattern" runat="server" Visible="False"></asp:TextBox><br />
<asp:Label ID="addnetwork_label" runat="server" Text=""></asp:Label>
<asp:Button ID="addnetwork_button" runat="server" Text="Add Network" Visible="False" OnClick="addnetwork_button_Click" />
+ </fieldset>
</td>
</tr>
</table>
View
3 Views/Private/Networks.aspx.cs
@@ -25,6 +25,9 @@ protected void Page_Load(object sender, EventArgs e)
addnetwork_name.Visible = true;
addnetwork_pattern.Visible = true;
addnetwork_button.Visible = true;
+ networklabel.Visible = true;
+ networklabel_name.Visible = true;
+ networklabel_pattern.Visible = true;
}
}
}

0 comments on commit 0426a04

Please sign in to comment.
Something went wrong with that request. Please try again.