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!