Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="form" runat="server">
- <br />
- Search for a Friend</label>
- <input type="text" name="txtfindfriend" id="txtfindfriend" />
- <%--Maybe make these options Images--%>
- <input type="submit" id="submitter" value="get friend" />
- <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged">
- <asp:ListItem Selected="True" ID="All_Check">All</asp:ListItem>
- <asp:ListItem ID="Xbox_Check">Xbox Live</asp:ListItem>
- <asp:ListItem ID="PSN_Check">PSN</asp:ListItem>
- <asp:ListItem ID ="Wii_Check">Wii</asp:ListItem>
- <asp:ListItem ID ="Steam_Check">Steam</asp:ListItem>
- <asp:ListItem ID ="Origin_Check">Origin</asp:ListItem>
- </asp:CheckBoxList>
- <br />
- <%
- var firstname = (string)nwReader["firstname"];
- var lastname = (string)nwReader["lastname"];
- var email = (string)nwReader["email"];
- var xboxlive = (string)nwReader["xbox"];
- var psn = (string)nwReader["psn"];
- var steam = (string)nwReader["steam"];
- var origin = (string)nwReader["origin"];
- var wii = (string)nwReader["wii"];
- Response.Write("xbox" + xboxlive + "PSN" + psn + "Steam" + steam + "Origin" + origin + "Wii" + wii);
- //a1.Visible = true;
- if (All_Check.Selected)
- {
- if (xboxlive != "")
- {
- a2.Visible = true;
- }
- else
- {
- a2.Visible = false;
- }
- if (psn != "")
- {
- a3.Visible = true;
- }
- else
- {
- a3.Visible = false;
- }
- if (steam != "")
- {
- a4.Visible = true;
- }
- else
- {
- a4.Visible = false;
- }
- if (origin != "")
- {
- a5.Visible = true;
- }
- else
- {
- a5.Visible = false;
- }
- if (wii != "")
- {
- a6.Visible = true;
- }
- else
- {
- a6.Visible = false;
- }
- }
- else if(Xbox_Check.Selected)
- {
- a2.Visible = true;
- a3.Visible = false;
- a4.Visible = false;
- a5.Visible = false;
- a6.Visible = false;
- if(xboxlive == "")
- {
- a2.InnerHtml = "<h3>Oh no! It seems this person does not have Xbox Live!</h3>";
- }
- }
- else if (PSN_Check.Selected)
- {
- a2.Visible = false;
- a3.Visible = true;
- a4.Visible = false;
- a5.Visible = false;
- a6.Visible = false;
- }
- else if (Wii_Check.Selected)
- {
- a2.Visible = false;
- a3.Visible = false;
- a4.Visible = false;
- a5.Visible = false;
- a6.Visible = true;
- }
- else if (Steam_Check.Selected)
- {
- a2.Visible = false;
- a3.Visible = false;
- a4.Visible = true;
- a5.Visible = false;
- a6.Visible = false;
- }
- else if (Origin_Check.Selected)
- {
- a2.Visible = false;
- a3.Visible = false;
- a4.Visible = false;
- a5.Visible = true;
- a6.Visible = false;
- }
- a2.InnerHtml = "<h3>Gamer Tag</h3> <a href=\"../api/gamertag.php?gamertag=" + xboxlive + "\">" + xboxlive + "</a>";
- a3.InnerHtml = "<h3>PSN</h3>" + psn;
- a4.InnerHtml = "<h3>Steam Name</h3>" + steam;
- a5.InnerHtml = "<h3>Origin Name</h3>" + origin;
- a6.InnerHtml = "<h3>Wiiverse Name</h3>" + wii;
- }
- nwReader.Close();
- conn.Close();
- %>
Advertisement
Add Comment
Please, Sign In to add comment