11
Answers

How to pass DataSet from One ActionMethod To another????

parth gupta

parth gupta

8y
312
1
        public ActionResult Admin(ObjectModel OM)
             {             
              DataSet ds = new DataSet();   
              DB objDB = new DB();    
           //Storing Dataset in model Dataset    
              OM.StoreAllData = objDB.SelectAllDetails(OM.DistrictId);  
           //Need to pass this Dataset into "Show" Method
              return RedirectToAction("show", "Appform",{ ds = OM.StoreAllData });  
           }


                         public ActionResult show(DataSet ds)  
           {      
           return View(OM);    
           }


Answers (11)