asp.net ÖÐÈÕÆÚºÍʱ¼äµÄ¸ñʽ»¯
ÕâÒ²ÐíÊÇÒ»¸öСÎÊÌâ µ«ÊÇÓкܶàѧÎÊ ²»ÄÜÑÛ¸ßÊÖµÍ ÎҰѴ󲿷ÖÇé¿öÁгöÀ´ ¸ø´ó¼ÒÒ»¸öÌáÐÑ
float str = 987654.32F;
//Response.Write(string.Format("{0:c}", str));
//this.Label1.Text = string.Format("{0:D}", str);
//this.Label1.Text = string.Format("{0:C}", str);
Response.Write("<h1>ÈÕÆÚ¸ñʽ»¯</h1>");
Response.Write("<br/>");
Response.Write("µ±Ç°Êý×Ö"+str);
Response.Write("<br/>");
Response.Write(string.Format("»õ±Ò¸ñʽ {0:c}", str));
Response.Write("<br/>");
Response.Write(string.Format("¿Æѧ¼¼Êõ·¨¸ñʽ {0:e}", str));
Response.Write("<br/>");
Response.Write(string.Format("¿Æѧ¼ÆÊý·¨¸ñʽ 12λÓÐЧÊý×Ö{0:e12}", str));
Response.Write("<br/>");
Response.Write(string.Format("¹Ì¶¨¸ñʽ {0:f}", str));
Response.Write("<br/>");
Response.Write(string.Format("¹Ì¶¨¸ñʽ ËÄλСÊý{0:f4}", str));
Response.Write("<br/>");
Response.Write(string.Format("³£¹æ¸ñʽ {0:g}", str));
Response.Write("<br/>");
Response.Write(string.Format("³£¹æ¸ñʽ ÁùλÓÐЧÊý×Ö{0:g6}", str));
Response.Write("<br/>");
Response.Write(string.Format("Êý×Ö¸ñʽ {0:n}", str));
Response.Write("<br/>");
Response.Write(string.Format("Êý×Ö¸ñʽ¡¡ÈýλСÊý{0:n3}", str));
Response.Write("<br/>");
Response.Write(string.Format("Ê®Áù½øÖÆ{0:x}", 32));
Response.Write("<br/>");
Response.Write("<h1>ÈÕÆÚ¸ñʽ»¯</h1>");
Response.Write("<br/>");
Response.Write("µ±Ç°ÈÕÆÚ£º" + System.DateTime.Now);
Response.Write("<br/>");
Response.Write(string.Format("¶ÌÈÕÆÚ{0:d}", System.DateTime.Now));
Response.Write("<br/>");
Response.Write(string.Format("³¤ÈÕÆÚ{0:D}", System.DateTime.Now));
Response.Write("<br/>");
Ïà¹ØÎĵµ£º
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Mail;
using System.Net.Mime;
using System.Net.Configuration;
namespace BCore.PubFunction
{
public class MailHandler
{
&n ......
VS2005µ÷ÊÔasp.net³ÌÐòʱ³öÏÖ----Internet Explorer ÎÞ·¨ÏÔʾ¸ÃÒ³Ãæ
ÈçͼËùʾ£º
Ç°¶Îʱ¼ä¿ÉÒÔµ÷ÊԵģ¬ËÖª×òÍíͻȻ²»ÐÐÁË£¬ÕÒÁ˺þã¬ÖÕÓÚÕÒµ½½â¾ö·½°¸¡£ÓõÄÊÇVS2005£¬Îļþϵͳ£¬ÔÚIISÀïÃæÉèÖõĻ°£¬¿ÉÒÔÔËÐУ¬´úÂëûÎÊÌ⣬Êý¾Ý¿âÁ¬½ÓûÎÊÌâ¡£
·½°¸Ò»£ºÍ¨¹ýÓÒ»÷ASP.NET Development Server£¬Èçͼ£º
´ò¿ª1£¬ÔÚĬÈÏä¯ÀÀÆ ......
Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory
ÇëÇó´¦Àí ......
People often ask me for guidance on how they can dynamically "re-write" URLs and/or have the ability to publish cleaner URL end-points within their ASP.NET web applications. This blog post summarizes a few approaches you can take to cleanly map or rewrite URLs with ASP.NET, and have th ......