Harlem 98

Harlem 98

  • NA
  • 161
  • 18.9k

Retain values in insert operation

Dec 12 2021 9:25 PM

Hello community.

I have a doubt which is, how to retrieve a single value, while creating the others normally for insert operation

The value i want to keep is "IDrh", which is also selected in a search box to load the data in page.

How should i code this?

//Search box ID=Searchbox1 runat=server 


//edit method
(...)
 FileID.Text = object.ID.ToString(); //PK

 rdpInvestigadorE.Text = object.IDh.ToString(); //value i want to retrieve

 rcbEstado.SelectedValue = object.IDEstadoTimesheet.ToString();
 txtAssinaturaTimesheet.Text = object.AssinaturaTimesheet;
 Obervaçoestxt.Text = object.Observações;
 DataEnvio.SelectedDate = object.DataEnvio;
 RadAsyncUpload1.TargetFolder = object.FileContent.ToString(); 

//INSERT METHOD

//create new non existing primary key (FileID)

// Get IDrh selected value

//Get other attributes empty values