Ciao ho questo errore.

Server Error in '/' Application.
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: CS0103: The name 'id' does not exist in the class or namespace 'ASP.inserisci_aspx'

Source Error:

Line 25: }
Line 26: //int id = MyReader.GetInt32(0);
Line 27: Response.Write(id);
Line 28: Response.write("CIAO");
Line 29: //Console.Writeline(myReader.GetInt32(0));
il codice è questo

Codice PHP:
MySqlCommand cmd = new MySqlCommand("SELECT id_foto from fotografie order by id_foto DESC"connection);
           try
            {
            
//connection.open();
            
MySqlDataReader MyReader cmd.ExecuteReader();
            while (
MyReader.Read())
                {
                
int id MyReader.GetInt32(0);
                }
            
//int id = MyReader.GetInt32(0);
            
Response.Write(id);
            
Response.write("CIAO");
            
//Console.Writeline(myReader.GetInt32(0));
            
}
            catch(
Exception e)
                {
            
Console.WriteLine("Exception Occured -->> {0}",e);
            }