Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NETÉèÖÃÊý¾Ý¸ñʽÓëString.FormatʹÓÃ×ܽá(2)

{0:d} YY-MM-DD
{0:p} °Ù·Ö±È00.00%
{0:N2} 12.68
{0:N0} 13
{0:c2} $12.68
{0:d}  3/23/2003
{0:T}  12:00:00 AM
{0:ÄÐ;;Å®}
DataGrid-Êý¾Ý¸ñʽÉèÖñí´ïʽ
Êý¾Ý¸ñʽÉèÖñí´ïʽ
.NET Framework ¸ñʽÉèÖñí´ïʽ£¬ËüÔÚÊý¾ÝÏÔʾÔÚÁÐÖÐ֮ǰÏÈÓ¦ÓÃÓÚÊý¾Ý¡£´Ë±í´ïʽÓÉ¿ÉÑ¡¾²Ì¬Îı¾ºÍÓÃÒÔϸñʽ±íʾµÄ¸ñʽ˵Ã÷·û×é³É£º
{0:format specifier}
ÁãÊDzÎÊýË÷Òý£¬ËüָʾÁÐÖÐÒª¸ñʽ»¯µÄÊý¾ÝÔªËØ£»Òò´Ë£¬Í¨³£ÓÃÁãÀ´Ö¸Ê¾µÚÒ»¸ö£¨ÇÒΨһµÄ£©ÔªËØ¡£format specifier Ç°ÃæÓÐÒ»¸öðºÅ (:)£¬ËüÓÉÒ»¸ö»ò¶à¸ö×Öĸ×é³É£¬Ö¸Ê¾ÈçºÎ¸ñʽ»¯Êý¾Ý¡£¿ÉÒÔʹÓõĸñʽ˵Ã÷·ûÈ¡¾öÓÚÒª¸ñʽ»¯µÄÊý¾ÝÀàÐÍ£ºÈÕÆÚ¡¢Êý×Ö»òÆäËûÀàÐÍ¡£Ï±íÏÔʾÁ˲»Í¬Êý¾ÝÀàÐ͵ĸñʽÉèÖñí´ïʽµÄʾÀý¡£ÓйظñʽÉèÖñí´ïʽµÄ¸ü¶àÐÅÏ¢£¬Çë²Î¼û¸ñʽ»¯ÀàÐÍ¡£
¸ñʽÉèÖñí´ïʽ
Ó¦ÓÃÓÚ´ËÊý¾ÝÀàÐÍ
˵Ã÷
Price: {0:C}
numeric/decimal
ÏÔʾ“Price:”£¬ºó¸úÒÔ»õ±Ò¸ñʽ±íʾµÄÊý×Ö¡£»õ±Ò¸ñʽȡ¾öÓÚͨ¹ý Page Ö¸Áî»ò Web.config ÎļþÖеÄÇøÓòÐÔÊôÐÔÖ¸¶¨µÄÇøÓòÐÔÉèÖá£
{0:D4}
integer£¨²»ÄܺÍСÊýÒ»ÆðʹÓᣣ©
ÔÚÓÉÁãÌî³äµÄËĸö×Ö·û¿íµÄ×Ö¶ÎÖÐÏÔʾÕûÊý¡£
{0:N2}%
numeric
ÏÔʾ¾«È·µ½Ð¡ÊýµãºóÁ½Î»µÄÊý×Ö£¬ºó¸ú“%”¡£
{0:000.0}
numeric/decimal
ËÄÉáÎåÈ뵽СÊýµãºóһλµÄÊý×Ö¡£²»µ½ÈýλµÄÊý×ÖÓÃÁãÌî³ä¡£
{0:D}
date/datetime
³¤ÈÕÆÚ¸ñʽ£¨“Thursday, August 06, 1996”£©¡£ÈÕÆÚ¸ñʽȡ¾öÓÚÒ³»ò Web.config ÎļþµÄÇøÓòÐÔÉèÖá£
{0:d}
date/datetime
¶ÌÈÕÆÚ¸ñʽ£¨“12/31/99”£©¡£
{0:yy-MM-dd}
date/datetime
ÓÃÊý×ÖµÄÄ꣭Ô£­ÈÕ±íʾµÄÈÕÆÚ£¨96-08-06£©¡£
Ö»¶Á
µ±´ËÁд¦Óڱ༭ģʽʱ£¬¸ÃÁÐÖеÄÊý¾ÝÊÇ·ñÏÔʾÔڿɱ༭µÄ¿Ø¼þÖС£
2006-02-22 | asp.netÊý¾Ý¸ñʽµÄFormat-- DataFormatString
ÎÒÃÇÔÚ³ÊÏÖÊý¾ÝµÄʱºò£¬²»Òª½«Î´¾­ÐÞÊιýµÄÊý¾Ý³ÊÏÖ¸øʹÓÃÕß¡£ÀýÈç½ð¶îÒ»ÍòÔª£¬Èç¹ûÎÒÃÇÖ±½ÓÏÔʾ¡¸10000¡¹£¬¿ÉÄܻᵼÖÂʹÓÃÕß¿´³Éһǧ»òÊ®Íò£¬Ôì³ÉʹÓÃÕßÔĶÁÊý¾ÝÉϵÄÀ§ÈÅ¡£ÈôÎÒÃǽ«Ò»ÍòÔªÈóÊκóÊä³öΪ¡¸NT$10,000¡¹£¬²»µ«ÈÃʹ±È½ÏºÃÔĶÁ£¬Ò²»áÈÃʹÓÃÕß¼õÉÙ·¸´íµÄ»ú»á¡£
ÏÂÁл­ÃæΪÈóÊιýµÄ½á¹û£º
ÉÏÊöÊý¾Ý³ýÁ˽«DataGrid Web ¿Ø¼þÒÔÑÕÉ«À´Çø¸ô¼Ç¼Í⣬×îÖ÷Òª½«ÈÕÆÚ¡¢µ¥¼ÛÒÔ¼°Ð¡¼ÆÕâÈý¸ö¼Æ×ֶεÄÊý¾ÝÐÞÊεĸüÈÝÒ×ÔĶÁ¡£ÒªÐÞÊÎ×ֶεÄÊä³ö£¬Ö»ÒªÉ趨×ֶεÄDataFormatString ÊôÐÔ¼´¿É£»ÆäʹÓÃÓï·¨ÈçÏ£º
DataFormatStr


Ïà¹ØÎĵµ£º

CKEditorºÍCKFinderÔÚASP.NETÖеÄÓ¦ÓÃ

½éÉÜ
CKEditorÊÇÐÂÒ»´úµÄFCKeditor£¬ÊÇÒ»¸öÖØпª·¢µÄ°æ±¾¡£CKEditorÊÇÈ«Çò×îÓÅÐãµÄÍøÒ³ÔÚÏßÎÄ×ֱ༭Æ÷Ö®Ò»£¬ÒòÆ侪È˵ÄÐÔÄÜÓë¿ÉÀ©Õ¹ÐÔ¶ø¹ã·ºµÄ±»ÔËÓÃÓÚ¸÷´óÍøÕ¾¡£¶øCKFinderÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄajaxÎļþ¹ÜÀíÆ÷¡£Æä¼òµ¥µÄÓû§½çÃæʹµÃ¸÷ÀàÓû§£¬²»¹ÜÊǴӸ߼¶×¨ÒµÈ˲ţ¬»¹ÊÇ»¥ÁªÍø³õѧÕߣ¬¶¼¹»Ö±¹Û¡¢¿ìËÙѧϰµÄѧϰʹÓÃËü¡£
& ......

asp.net ÎÄÕÂÄÚÈÝ·ÖÒ³ÏÔʾµÄ´úÂë

aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ArticlePage.aspx.cs" Inherits="ArticlePage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > ......

asp.net̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà

·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà ³Ë·çÏÖÓÐÔ­´´³ÌÐò³Ë·ç¹ã¸æÁªÃËϵͳ³Ë·ç¶àÓû§¼ÆÊýÆ÷ ³Ë·ç¶àÓû§PHPͳ¼Æϵͳ ³Ë·çµçÓ°³ÌÐò³Ë·çÍøÖ·³ÌÐò³Ë·ç¹ã¸æ¹ÜÀíϵͳ³Ë·çasp.net̽Õë·ÂpetshopµÄÒ»¸öÊý¾Ý·ÃÎʲãµÄÀà using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
namespace yueying.Compon ......

asp.netÍøÕ¾iisÓëĿ¼ȨÏÞÉèÖÃ

ÏÞÉèÖÃÒÔWindows Server 2003ΪÀý£¬ÐéÄâÖ÷»úÓû§²»±Ø½øÐдËÏîÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒªÓõ½ÒÔϵÄ×é:
IIS_WPG ×飨Ҳ³ÆΪ IIS ¹¤×÷½ø³Ì×飬IIS Worker Process Group£©
Guests×é £¨À´±ö×飬ÔÚϵͳÖÐÓµÓÐ×îÉÙµÄȨÏÞ£©
ÒÔ¼°ÒÔϵÄÕʺÅ:
Internet À´±öÕÊ»§ £¨ÄäÃû·ÃÎÊ Internet ÐÅÏ¢·þÎñµÄÄÚÖÃÕÊ»§£©
Æô¶¯ IIS ½ø³ÌÕÊ»§ £¨ÓÃÓ ......

Asp.net DataListǶÌ×DataListµÄʵÏÖ


Asp.net DataListǶÌ×DataListµÄʵÏÖ
[ 2006-05-31 01:26:24 | ×÷Õß: Admin ]
×ÖÌå´óС: ´ó | ÖÐ | С
Êý¾Ý·þÎñ¿Ø¼þµÄǶÌ××îÖ÷ÒªµÄÊÇÊÇÄÚ²ã¿Ø¼þÊý¾ÝµÄ¼ÓÔغÍʼþµÄ´¥·¢¡£ DataListǶÌ×µÄÖصãÊÇÒªÔÚÍâ²ãDataListµÄItemDataBoundʼþÖÐÓÃe.Item.FindControl·½·¨À´ÕÒµ½Ç¶ÌײãDataListµÄid,±àдǶÌײãDataListµÄ°ó¶¨Êý¾Ý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ