I need to hide the controls of a form that I intend to use to create credit requests.
the procedure to be performed is: If the page is displayed for the first time, the controls to add client and co-debtor information are displayed, stored when editing, the payment agreement and initial date controls should be displayed.
try to do it in the following way:
I declare the method
public void deshabilitarcontroles(){
TextBoxValor_Credito.Visible = false;
DropDownListPeriodo_cre.Visible = false;
TextBoxCuotas.Visible = false;
TextBoxFechainicial1.Visible = false;
TextBoxFechainicial2.Visible = false;
TextBoxValorcuotainicial1.Visible = false;
TextBoxValorcuotainicial2.Visible = false;
}
if (!IsPostBack) {
deshabilitarcontroles();
}
But I see that it disables only the fields to store the data, it does not disable the full text box.
How could I do it? So it appears to me
if the page is for the first time they should not appear
Thank you in advance, greetings!