Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [c#]errore su insert into

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0246: The type or namespace name 'dtmDate' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:



    [PHP]Line 207: connection.Open();
    Line 208:
    Line 209: string SQL = "INSERT INTO fotografie (nome, data_ins, valido, vuolevoti, accettacond) VALUES ('" + nomedelfile + "', '" + dtmDate.ToString( "s" ) + "', 'NO', 'NO', 'SI')";
    Line 210: Status.Text = SQL;
    Line 211: MySqlCommand comando = new MySqlCommand(SQL, connection);[PHP]


    nel void page_load ho questo

    Codice PHP:
    void Page_Load(object senderSystem.EventArgs e

        
    DateTime dtmDate = new DateTime();
      
    dtmDate DateTime.Now
    nn so cosa fare
    -------------------------
    ..::`DrUmM\n0`::..
    www.jonathandomenici.com

  2. #2
    Utente di HTML.it L'avatar di Joe Taras
    Registrato dal
    Nov 2003
    residenza
    Taranto
    Messaggi
    955

    Re: [c#]errore su insert into

    Originariamente inviato da drummino^
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0246: The type or namespace name 'dtmDate' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:



    [PHP]Line 207: connection.Open();
    Line 208:
    Line 209: string SQL = "INSERT INTO fotografie (nome, data_ins, valido, vuolevoti, accettacond) VALUES ('" + nomedelfile + "', '" + dtmDate.ToString( "s" ) + "', 'NO', 'NO', 'SI')";
    Line 210: Status.Text = SQL;
    Line 211: MySqlCommand comando = new MySqlCommand(SQL, connection);[PHP]


    nel void page_load ho questo

    Codice PHP:
    void Page_Load(object senderSystem.EventArgs e

        
    DateTime dtmDate = new DateTime();
      
    dtmDate DateTime.Now
    nn so cosa fare
    La var. è locale la devi fare globale o la passi come parametro al metodo!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.