buenas tardes
alguien me puede ayudar indicandome como llamar una función
necesito mandar llamar esta funcion:
public void ImportaDatos(DataTable altas_forte) { try { SqlCommand cmd = new SqlCommand(); cmd.CommandText = "sp_anexoa_tabla_amp"; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@altas_forte", SqlDbType.Structured)).Value = altas_forte; Database.ExecSpReturnDataTable(cmd); } catch (Exception ex) { string mensaje = null; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "showError", "alert('" + ex.Message + "');", true); System.Web.UI.ScriptManager.RegisterStartupScript(Page, this.GetType(), "ErrorConstruirDatatable", mensaje, true); /////////////// } }
sssssss