Skip to content

Commit

Permalink
client side: feature specific network
Browse files Browse the repository at this point in the history
  • Loading branch information
Martikos committed Apr 24, 2013
1 parent 1662c0d commit c6aa183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Views/Search.aspx
Expand Up @@ -70,6 +70,7 @@
<div>
<asp:Label ID="featured3_header" runat="server" Text="Label">Around You</asp:Label>
<asp:DropDownList ID="networks" runat="server" OnSelectedIndexChanged="networks_SelectedIndexChanged" Visible="False" style="width: 100px"></asp:DropDownList>
<asp:Button ID="networks_button" runat="server" Text="Go" Visible="False" OnClick="networks_button_Click" />
</div><br />
<div id="featured3" runat="server">

Expand Down
7 changes: 7 additions & 0 deletions Views/Search.aspx.cs
Expand Up @@ -185,12 +185,14 @@ private void getFeatured()
getNetworks();
featured3_header.Text = "In Your Network";
networks.Visible = true;
networks_button.Visible = true;
getNetworkListings(networks.SelectedItem.Text);
}
else
{
putHighlights();
networks.Visible = false;
networks_button.Visible = false;
}
}

Expand Down Expand Up @@ -368,4 +370,9 @@ protected void update_button_Click(object sender, EventArgs e)
Response.Redirect("~/Views/Private/UpdatePost.aspx?L=" + view_item_listingid.Value);
}

protected void networks_button_Click(object sender, EventArgs e)
{
fr_view.ActiveViewIndex = 1;
getFeatured();
}
}

0 comments on commit c6aa183

Please sign in to comment.