Hi, I have this sql server db where I want to update, create new records, and delete records from a DetailsView, without the use of asp's datasource controls. I have been reading that I need to manually write code to do these in the DetailsView1_ItemInserting, _ItemUpdating, _ItemDeleting, and _ModeChanging events.
Can anyone help me get started, namely the updating portion? I cant seem to find any tutorials related to creating w/o the use of datasource controls.
I think I got the ModeChanging event done, but I'm stuck on updating, and inserting...
Any suggestions? Thanks in advance..
Can anyone help me get started, namely the updating portion? I cant seem to find any tutorials related to creating w/o the use of datasource controls.
Code:
protected void dvProducts_ModeChanging(object sender, DetailsViewModeEventArgs e)
{
dvProducts.ChangeMode(e.NewMode);
BindView();
}
I think I got the ModeChanging event done, but I'm stuck on updating, and inserting...
Any suggestions? Thanks in advance..