Posted on: 9/14/2015 11:36:54 AM | Views : 878

Hi,
I have an issue wherein after the Save button click, the values are not retained on the screen. This only happens after Inserting new data. The data is getting saved in the database but the only issue is as soon as the Save button is clicked, the data on the screen just vanishes.
however, on the other hand when the data is updated, it is retained on the screen after clicking on Save. Please find the Save button code attached.
Thanks.
protected void BtnSaveClick(object sender, ImageClickEventArgs e) { string selectedoffice = "-1"; selectedoffice = addUpdateOfficeDetail(); BuilOfficeList(); ddlOffice_cd.ClearSelection(); ListItem selItem = ddlOffice_cd.Items.FindByValue(selectedoffice); if (selItem != null) { selItem.Selected = true; } DvOfficeDetails.ChangeMode(Detail ...

Go to the complete details ...