Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Controls and Properties
Message
De
01/11/2002 16:59:34
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00717518
Message ID:
00718041
Vues:
17
Cathi,

Thanks for the suggestion. I almost have it. Here is what I tried. 1. I placed the code below in the load event and it doesn't work. The "Specified cast is Invalid exception" is thrown. 2. I also placed the same code in a method and call the method from the load event of the form, I get the same exception. 3. If I place the code in a click event of a button, the code works when the button is clicked. Why am I getting the Specified cast is not valid message?
 Try
    dsResults = CType(Session("dsSearchResults"), DataSet)
    setMessage("There were " + dsResults.Tables(0).Rows.Count.ToString + " record(s) found!")
 Catch exp As Exception
     setMessage(exp.Message)
 End Try
Thanks

Jim
Thanks

Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform