Ejemplo n.º 1
0
        protected void GoPrivate_Click(object sender, EventArgs e)
        {
            Matches match = new Matches();
            string  code  = match.getPvtMatchCode(match_id);

            if (match.toggleMatchType(match_id, "Private"))
            {
                Response.Redirect("~/MatchRoom.aspx?match_id=" + match_id + "&type=Private" + "&code=" + code);
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Ejemplo n.º 2
0
        protected void GoPublic_Click(object sender, EventArgs e)
        {
            Matches match = new Matches();

            match.toggleMatchType(match_id, "Public");

            string[] matchInfo = match.getMatchInfo(match_id);
            //"MatchRoom.aspx?match_id=" + $(element).attr("id") + "&type=Public";
            if (matchInfo[2] == "Public")
            {
                Response.Redirect("~/MatchRoom.aspx?match_id=" + match_id + "&type=Public");
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }