Organizational Research By

Surprising Reserch Topic

asp net mvc 3 controller action and open new window using -'asp.net,asp.net-mvc-3,controller,action'


asp net mvc 3 controller action and open new window  using -'asp.net,asp.net-mvc-3,controller,action'

i have a controller and an action. this action is to save data into database. and now, i want when i submit a button, my controller do an action and open new window.

public ActionResult New(FormCollection collection)
    {

       data.Population_Code = collection["Countrys[0].CountryCode"];
       data.Population_Desc = collection["Countrys[0].CountryDesc"];
       data.Population_Grouping = collection["Countrys[0].CountryGroup"];
       data.Population_Type = "CNTRY";
       data.Population_Redudant = "N";
       data.Population_Modified_At = officeCode.User_Office.ToString();
       db.SaveChanges();

      //example for new window
      //window.open('/Report/New.aspx')

      return RedirectToAction("index");
    }


so my controller do an action and open a new window.

anyone can help me ?

thanks
    
asked Sep 7, 2015 by rajesh
0 votes
28 views



Related Hot Questions



Government Jobs Opening


...