Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting value of OUTPUT param in .net
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01544303
Message ID:
01544430
Vues:
18
>>>1 of 2:
>>>System.Data.Common.DbParameter DbParameterCollection[int index]
>>>System.Data.Common.DbParameter DbParameterCollection[string parameterName]
>>>
>>>I'm using the second. What happens if you split it:
   var v = command.Parameters["@Param3"];
>>>            var v2 = v.Value;
>>
>>I get compiler errors. Let me ask you, what tpe is your var "v"? I also get error on the "var"; what is it?
>
>Are you using .NET 4.0 or prior version? What version of VS? var was introduced in the version .NET 4.0

I found my problem. When declaring the command object I missed changing it from interface to SQL Server specific.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform