views:

118

answers:

1

On ItemUpdating, I have only found one solution to retrieve field values. I have not been successful i retrieving only updated values.

Is there a better way, than the way I do it now?

    protected void fwHotelDetails_ItemUpdating(Object sender, FormViewUpdateEventArgs e)
    {
        TextBox tbName = (TextBox)fwHotelDetails.Row.FindControl("input_name");
        MessageLabel.Text = "This works..." + tbName.Text;
    }
+1  A: 

Yea. Event handler's second parameter (FormViewUpdateEventArgs e) has following properties:

  • Keys
  • NewValues
  • OldValues

More info on msdn

Hope this helps

grega g