Пример #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     FileUpload1.SaveAs(MapPath(FileUpload1.FileName));
     //String linea = MapPath(FileUpload1.FileName);
     string linea = FileUpload1.FileName;
     Servicio serv = new Servicio();
     serv.AgregarFoto(linea, Convert.ToInt32(TextBox1.Text));
     Server.Transfer("VerPaqueteIndi.aspx");
 }
Пример #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        FileUpload1.SaveAs(MapPath(FileUpload1.FileName));
        //String linea = MapPath(FileUpload1.FileName);
        string   linea = FileUpload1.FileName;
        Servicio serv  = new Servicio();

        serv.AgregarFoto(linea, Convert.ToInt32(TextBox1.Text));
        Server.Transfer("VerPaqueteIndi.aspx");
    }