private void ActionSpecial()
        {
            string Name    = Request.QueryString["name"];
            string Faction = Request.QueryString["faction"];

            modelData            = Global.models.FirstOrDefault(fModel => fModel.name == Name && fModel.faction == Faction);
            repeater2.DataSource = modelData.actions;
            repeater2.DataBind();

            if (modelData.specialAbilities != null)
            {
                SpecialTitle.Visible = true;
                repeater3.Visible    = true;
                repeater3.DataSource = modelData.specialAbilities;
                repeater3.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string Name    = Request.QueryString["name"];
            string Faction = Request.QueryString["faction"];

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

            catch
            {
                Response.Write("Error, please try again");
            }
            Page.Title = "Model Details";
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "Update Models";
            string Name    = Request.QueryString["name"];
            string Faction = Request.QueryString["faction"];

            updateModel = Global.models.FirstOrDefault(fModel => fModel.name == Name && fModel.faction == Faction);

            try
            {
                if (!Name.Equals("") && !Faction.Equals(""))
                {
                    updateDetails();
                }
                else
                {
                    Response.Redirect("LandingPage.aspx");
                }
            }
            catch
            {
                Response.Write("");
            }
        }