Nugs
asked on
Vb.Net to C# conversion (cont.)
Morning guys,
Well my last few posts have been regarding VB.Net to C# conversion. I have used Instant C# from Tangible Software Solutions. Very nice program but it does miss on a few things.
So I have a few things below I was hoping I could get some better accurate conversion from someone.
The app took this:
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
VB: .. & FormatCurrency(calculatedT otalValue, 2)
And converted it to this:
C#: & Microsoft.VisualBasic.Stri ngs.Format Currency(c alculatedT otalValue, 2, Microsoft.VisualBasic.TriS tate.UseDe fault, Microsoft.VisualBasic.TriS tate.UseDe fault, Microsoft.VisualBasic.TriS tate.UseDe fault)
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
Also how would I format this into a currency in C#?
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
<%# FormatCurrency(Container.D ataItem) %>
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -----
Thanks guys
Nugs
Well my last few posts have been regarding VB.Net to C# conversion. I have used Instant C# from Tangible Software Solutions. Very nice program but it does miss on a few things.
So I have a few things below I was hoping I could get some better accurate conversion from someone.
The app took this:
--------------------------
VB: .. & FormatCurrency(calculatedT
And converted it to this:
C#: & Microsoft.VisualBasic.Stri
--------------------------
Also how would I format this into a currency in C#?
--------------------------
<%# FormatCurrency(Container.D
--------------------------
Thanks guys
Nugs
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<%# Container.DataItem.ToStrin g("{0:c}") %>
ASKER
Neither of these worked...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<%# Container.DataItem.ToStrin g("c") %>
No overload for method 'ToString' takes '1' arguments
No overload for method 'ToString' takes '1' arguments
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.