Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string Name    = Request.QueryString["name"];
            string Faction = Request.QueryString["faction"];

            dataModel = Global.models.FirstOrDefault(tModel => tModel.name == Name && tModel.faction == Faction);

            if (!Name.Equals("") && !Faction.Equals(""))
            {
                updatePlayerInfo();
            }
            else
            {
                Response.Redirect("Default.aspx");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string Name    = Request.QueryString["name"];
            string Faction = Request.QueryString["faction"];

            try
            {
                if (!Name.Equals("") && !Faction.Equals(""))
                {
                    dataModel = Global.models.FirstOrDefault(tModel => tModel.name == Name && tModel.faction == Faction);
                    DisplayData();
                }
                else
                {
                    Response.Redirect("LandingPage.aspx");
                }
            }

            catch
            {
                Response.Write("try again");
            }
        }