Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString.Count > 0)
            {
                ScoreCalulator score = new ScoreCalulator();

                if (!string.IsNullOrEmpty(Request.QueryString["param"]))
                {
                    this.param = Request.QueryString["param"]; //get query string into string variable
                    if (this.param.Length > 0)
                        Response.Write(score.FindWord(this.param, Request.QueryString["gameTimeLeft"]));
                    else
                        Response.Write("NUTS!");
                }else
                    Response.Write("NUTS!");
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString.Count > 0)
            {
                ScoreCalulator score = new ScoreCalulator();

                if (!string.IsNullOrEmpty(Request.QueryString["param"]))
                {
                    this.param = Request.QueryString["param"]; //get query string into string variable
                    if (this.param.Length > 0)
                    {
                        Response.Write(score.FindWord(this.param, Request.QueryString["gameTimeLeft"]));
                    }
                    else
                    {
                        Response.Write("NUTS!");
                    }
                }
                else
                {
                    Response.Write("NUTS!");
                }
            }
        }