Quantcast
Channel: mandar llamar una funcio
Viewing all articles
Browse latest Browse all 4

mandar llamar una funcio

$
0
0

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


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images