Unlimited web hosting - Table 12-2 Formatting Symbols for Currency and Date/Time

Table 12-2 Formatting Symbols for Currency and Date/Time Columns Symbol Name Sample Output {0:C} or {0:c} Currency $29.95 {0:d} Short date 6/1/2006 {0:D} Long date Thursday, June 01, 2006 {0:t} Short time 12:00 AM {0:T} Long time 12:00:00 AM {0:f} Full (short time) Friday, June 02, 2006 12:00 AM {0:F} Full (long time) Thursday, June 01, 2006 12:00:00 AM {0:g} General (short time) 6/1/2006 12:00 AM {0:G} General (long time) 6/1/2006 12:00:00 AM Some Security Considerations In any given database, there is sure to be information that users should never see. There will also be much information that users are allowed to see but not change. It s up to you to decide which is which and to provide all the necessary security. A relatively simple way to deal with this is to create a new folder for pages that no user (other than you) can see. Here s how: 1. Right-click the site name at the top of Solution Explorer. 2. Choose New Folder. 3. Name this folder AdminPages. 4. Using the Web Site Administration Tool, create a new role, perhaps named Admin. 5. Add a new access rule that allows people in the Admin role to access pages in AdminPages, and denies access to both anonymous users and site members. 6. Finally, create a new user account for yourself and put yourself in both the Admin and SiteMembers roles. You ll need to log in to that new user account before you can view any pages you put into the new AdminPages folder. Chapter 12: Using Data in Web Pages 275
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply