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

asp.netСÊýµãËÄÉáÎåÈëµÄ·½·¨

1.Ö»ÒªÇó±£ÁôNλ²»ËÄÉá5Èë
¡¡¡¡float f = 0.55555f£»int i =£¨int£©£¨f * 100£©£»f = £¨float£©£¨i*1.0£©/100£»
¡¡¡¡2.±£ÁôN룬ËÄÉáÎåÈë .
¡¡¡¡decimal d= decimal.Round£¨decimal.Parse£¨"0.55555"£©£¬2£©£»
¡¡¡¡3.±£ÁôNλËÄÉáÎåÈë
¡¡¡¡Math.Round£¨0.55555£¬2£©
¡¡¡¡4£¬±£ÁôNλËÄÉáÎåÈë
¡¡¡¡double dbdata = 0.55555£»string str1 = dbdata.ToString£¨"f2"£©£»//fN ±£ÁôN룬ËÄÉáÎåÈë
¡¡¡¡5.±£ÁôNλËÄÉáÎåÈë
¡¡¡¡string result = String.Format£¨"{0£ºN2}"£¬ 0.55555£©£»//2λ
¡¡¡¡string result = String.Format£¨"{0£ºN3}"£¬ 0.55555£©£»//3λ
¡¡¡¡6. ±£ÁôNλËÄÉáÎåÈë
¡¡¡¡double s=0.55555£»result=s.ToString£¨"#0.00"£©£»//µãºóÃ漸¸ö0¾Í±£Áô¼¸Î»


Ïà¹ØÎĵµ£º

ASP.NETÑéÖ¤¿Ø¼þÏê½â

¹ã¶«ÄϺ£Êй«°²¾Ö¼ÆËã»ú°²È«¼à²ì¹ÉÓ÷¿­
    ASP.NETÊÇ΢ÈíÍƳöµÄÏÂÒ»´úWEB¿ª·¢¹¤¾ß£¬ÆäÇ¿´óµÄ¹¦ÄÜÁ¢¼´ÎüÒýÁËÒ»´óÅúWEB¿ª·¢ÕßͶÈëËüµÄÃÒÏ¡£ÏÖÔÚ£¬ÎÒÃÇÀ´¿´¿´ASP.NETµÄÑéÖ¤¿Ø¼þ£¬¸ÐÊÜASP.NETµÄÇ¿´ó¹¦ÄÜͬʱ·½±ãÎÒÃÇÏÖÔÚµÄWEB¿ª·¢¡£
WEB¿ª·¢ÕßÌرðÊÇASP¿ª·¢Õߣ¬Ò»Ö±¶ÔÊý¾ÝÑéÖ¤±È½ÏÄջ𣬵±ÄãºÃ²»ÈÝÒ×д³öÊý¾ ......

asp.net ²Ù×÷xml

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷
ÏÂÃæÓдúÂëµ÷ÊÔÕýÈ·
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using&nb ......

asp/asp.netÁ¬½Ósql anywhereÊý¾Ý¿â


<%
set conn= server.createobject("ADODB.connection")
conn.open "driver={sybase driver 10};"
"srvr=SYBASE;"
"UID=sa;"
"pwd=sybase;"
sql="select no from tab_st ......

asp.netѧϰÍø

±¾ÎÄΪÖйúASP.NET¿ª·¢ÍøÔ­´´ÎÄÕ£¬×ªÔرØÐë×¢Ã÷³ö´¦¡£ Ãû³Æ£º ASP.NET
µØÖ·£ºhttp://www.asp.net
½éÉÜ£ºÎ¢Èí.NET webformµÄÀϳ²£¬×ÊÁϺÍʵÀý´úÂ붼·Ç³£Äѵá£
Ãû³Æ£º CSDNÎĵµÖÐÐÄ    loveswallow998  58213998
µØÖ·£ºhttp://dev.csdn.net/
½éÉÜ£ºÖÐÎĵģ¬×ÊÁÏ»¹Ëã·á¸»£¬¿ÉÒÔ×÷Ϊ¹úÄÚÊ×Ñ¡¡£ ......

asp.net»ñÈ¡´«ÖµgetºÍpostÇëÇó

//postÇëÇó
string name = Request["name"].toString();
string name =Request.Form.Get("name").toString();
//getÇëÇó
string name = Request.QueryString["name"].toString();
µ«ÎÒ·¢ÏÖ ÎÞÂÛÊÇ·ñÊÇpostÓëget´«Öµ¶¼¿ÉÓÃ
string name = Request["name"].toString();

±íµ¥Ìá½»ÖÐgetºÍpost·½Ê½µÄÇø±ð¹éÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ