Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting method in sub class
Message
De
31/03/2015 10:37:18
 
 
À
31/03/2015 10:20:58
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01617154
Message ID:
01617493
Vues:
16
>>Can't see why that would be happening. What exactly are you seeing ?
>
>The same code is used when entering the form, in the related method, and in the save method when saving. In the save method, a direct reference to the class name would simply make the application to crash. Then, without changing any code, a minute later, when entering the form, I have an error about a runtime such as "No default member found for type 'RuntimeType'.". In overall, this is not safe as I believe we should always establish object reference to a class and negotiate with that instead of using a method name directly like that.

Just looked at the code you posted earlier. You should be passing the *type* of DataEntry to the method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform