Formview itemupdating findcontrol

If you do not assign value in Data Key Names property, then you will not get the primary key for performing updating or deleting the record.When user click on "Edit" link, update and cancel link will appears in-place of edit link.It will automatically generate the "Delete" link at the bottom of Detail View control.There may be case that there is no results are returned from its data source or no matching records are found.When you click on the new link of Detail View control, the UI will be changed and blank editable text will appear.Now you have to find these textbox control that is available inside the Detail View control.You cannot restrict the user to enter null values or illegal value.If you need to provide validation with input data, then you should use templates with the Details View control.

When you perform edit operation, then by default you will not get any type of validation.In general Grid View control displays more than one record, but the Details View control displays single record from database table.When you execute your web page, Details View control renders an HTML table.For inserting the new record into the database, first set the value of Auto Generate Insert Button property as True.It will automatically generate the "New" link at the bottom of Detail View control.

Leave a Reply