I was borrowing a snippet of code from one of my VB .NET projects and for the life of me I can't figure out how to make it work for C#...
Dim totalBillableTime As Decimal = Decimal.Parse(cmd.Parameters("@TotalBillableTime").Value.ToString())
Return totalBillableTime
I need a string returned instead of a decimal, I tried this, and a few other variations, to no success... I get this error, "Non-invocable member 'System.Data.SqlClient.SqlCommand.Parameters' cannot be used like a method."
string assetTypePrefix = cmd.Parameters("@AssetTypePrefix").Value;

New Topic/Question
Reply



MultiQuote




|