anno_scolastico.items.add(elemento)
anno_scolastico.items.add(elemento)
press play on tape
-----
MP3 Listing
https://sourceforge.net/projects/mp3-listing
File Listing
https://sourceforge.net/projects/file-listing-2-0/
altro errore
Conversion from type 'Integer' to type 'Date' is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Conversion from type 'Integer' to type 'Date' is not valid.
Source Error:
Line 2497:For Each riga As System.Data.DataRow In dt.Rows
Line 2498: Dim d As DateTime = New DateTime()
Line 2499: d = CType(riga("datanum"), DateTime)
Line 2500: Dim giorno As String = d.Day.ToString()
Line 2501: Dim mese As String = d.Month.ToString()
victor
----------------------
il codice te l'ho scritto come esempio generico, i dettagli non li so
dal db comunque tira fuori un Intero, è scritto, per questo va in errore. Non so come memorizzi la data...in quella istruzione stai recuperando la data dal DB e la stai mettendo in un tipo Datetime, per poi scomporla in giorno mese ed anno.
ci sono altri mille modi per ottenere la data direttamente come vuoi (senza scomporla), in formato string. Guarda
http://www.guru4.net/articoli/format...datetimeCustom
press play on tape
-----
MP3 Listing
https://sourceforge.net/projects/mp3-listing
File Listing
https://sourceforge.net/projects/file-listing-2-0/