Login    
 
 
 
 
Text/HTML
  
You are here :: Blogs Saturday, May 19, 2012

Search
Note: This uses the internal blog search engine. The Google search engine is also available at the top of the page.
  
Disclaimer

Please review the site disclaimer before downloading or using content found on this site

  
Categories
  
DEVSHED Blog
As always, I welcome your comments!
Jun 22

Written by: Steve Gray
6/22/2009 4:12 PM  RssIcon

Owing to my clearly advancing age I have a hard time remembering how to format strings in all the different places that I work. VB has one way, Janus has another, Componentart is a third. So, I'll try and blog examples by category.

I'd really like help with this, if you'd send examples I'd appreciate it.

 

VB

'Format with one decimal place
String.Format("{0:n1}", 123.56) 
 
'Formatting dates
String.Format("{0:MMddyyyy}", Now)

ASP.NET

The datagrid uses the standard VB format strings

<asp:BoundColumn DataField="availToSell" 
    DataFormatString="{0:F0}"></asp:BoundColumn>

 

Janus Grids

For number, use an InputMask of Number. ‘Number5’ will give 5 decimal places.

Tags:
Categories:
Location: Blogs Parent Separator DEVSHED Blogs
As always, I welcome your comments!
  
 
 
Home | Products | Blogs | Contact Us | Links | God's Plan
Privacy Statement | Terms Of Use
 
Copyright 2011 by Devshed.us