Terry

Terry

  • NA
  • 148
  • 0

On a button click fire FormView's Update command

May 31 2015 12:58 PM
Hello,
 
     I am using Entity Framework  in my ASP.NET 4.5 Web Forms app .
 
     I have a Gridview  whose data is shown in FormView onSelectedIndexChanged event. Programatically, I change the mode of Formview from ReadOnly - Edit - Insert. 
    I have a button outside FormView of "Save". When user click's that button, I want to execute Formview's Update/Insert command i.e. the data that is updated in FormView to be saved in db. 
 
    How can this be done ?