Exemple #1
0
        public ActionResult Plazos(FormCollection form)
        {
            TempData["f"] = sol.select();   //Variable la cual usaremos para llenar nuetsro select en la vista
            string year     = form["from"]; // Recibe el valor del input dentro del form con el id="from"
            string month    = form["Mes"];  // Recibe el valor del input dentro del form con el id="mes"
            string solucion = form["sel"];  // Recibe el valor del select dentro del form con el id="sel"

            try {
                TempData["a"]     = year;                             //Varaible usada en la vista
                TempData["m"]     = month;
                TempData["datos"] = s1.select(year, month, solucion); //Variable que sera usada en la vista con la informacion necesaria
            }
            catch (SqlException e)
            {
                System.Diagnostics.Debug.WriteLine("{0} First exception caught.", e);
            }
            return(View());
        }