Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ASP.NET string format

$
0
0

Hi I am trying to understand the following code line.. 

<div>What is "{0:#,###}" means? This is part of a code where</div> <div>a progress bar shows with like and dislikes. </div> <div>The progress bar will be colored in green and red for</div> <div>like and dislike. The red won't come-up in the bar so</div> <div>am trying to understand what is wrong here.. thanks for</div> <div>any explanation.</div> <div> <div></div> <div> <div>  Dim [like] As String = "0"</div> <div>            If Me.Liked > 0 Then</div> <div>                [like] = String.Format("{0:#,###}", Me.Liked)</div><div>            End If</div> <div>            Dim dislike As String = "0"</div> <div>            If Me.Disliked > 0 Then</div> <div>                dislike = String.Format("{0:#,###}", Me.Disliked)</div> <div>            End If</div> </div> </div>

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>