dynamic formatting using string.format
Hi,
I have a different scenario in formatting string.
The format value and format type are in database.
So the code needs to format the value accordingly.
Say, if it is currency value it has to the currency format.
If it is number value it has to the number format.
Here I have given the sample code.
string strValue= "1234567";
string strFormat="{0:c}";
System.Console.WriteLine(string.Format(strFormat,strValue));
System.Console.ReadLine();
But the above code does not formatting...
I hope you have solution for this.
thanks in advance
chandra babu

