Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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";
        }
Ejemplo n.º 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("");
            }
        }