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

aspÖеöÈ¡Õûº¯Êý

aspÖеöÈ¡Õûº¯ÊýÊÇ£ºfix(),int(),round();
Int(number)¡¢Fix(number)º¯Êý·µ»ØÊý×ÖµÄÕûÊý²¿·Ö¡£number ²ÎÊý¿ÉÒÔÊÇÈÎÒâÓÐЧµÄÊýÖµ±í´ïʽ¡£Èç¹û number ²ÎÊý°üº¬ Null£¬Ôò·µ»Ø Null¡£
Àý£º
response.write int(2.14) '2
response.write fix(2.14) '2
response.write int(2.54) '2
response.write int(2.54) '2
    Int ºÍ Fix º¯Êý¶¼É¾³ý number ²ÎÊýµÄСÊý²¿·Ö²¢·µ»ØÒÔÕûÊý±íʾµÄ½á¹û¡£Int ºÍ Fix º¯ÊýµÄÇø±ðÔÚÓÚÈç¹û number ²ÎÊýΪ¸ºÊýʱ£¬Int º¯Êý·µ»ØÐ¡ÓÚ»òµÈÓÚ number µÄµÚÒ»¸ö¸ºÕûÊý£¬¶ø Fix º¯Êý·µ»Ø´óÓÚ»òµÈÓÚ number ²ÎÊýµÄµÚÒ»¸ö¸ºÕûÊý¡£ÀýÈ磬Int ½« -8.4 ת»»Îª -9£¬¶ø Fix º¯Êý½« -8.4 ת»»Îª -8¡£
round(Expression[, numdecimalplaces])·µ»Ø°´Ö¸¶¨Î»Êý½øÐÐËÄÉáÎåÈëµÄÊýÖµ¡£ExpressionÊDZØÑ¡Ïî¡£ÊýÖµ±í´ïʽ ±»ËÄÉáÎåÈë¡£NumdecimalplacesÊÇ¿ÉÑ¡Ïî¡£Êý×Ö±íÃ÷СÊýµãÓÒ±ßÓжàÉÙλ½øÐÐËÄÉáÎåÈë¡£Èç¹ûÊ¡ÂÔ£¬Ôò Round º¯Êý·µ»ØÕûÊý¡£
Àý£º
response.write round(3.14) '3
response.write round(3.55) '4
response.write round(3.1415,3) ' 3.142


Ïà¹ØÎĵµ£º

asp Ê÷£¬c# ²éÕÒ Ö¸¶¨½Úµã

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace W ......

asp gridView ÎÞÊý¾Ýʱºò£¬ÏÔʾ±íÍ·

 public void Gridview_BindNoRecords(GridView gridView, DataTable dt) // gridView£¬°ó¶¨Êý¾ÝÔ´DT
    {
        int a = dt.Rows.Count;
        if (dt.Rows.Count == 0)
      & ......

asp gridView Ä£°åÁÐ ¿Ø¼þ È¥ÐÐË÷Òý

protected void Button1_Click(object sender, EventArgs e)
{
    GridViewRow gvr = (sender as Button).NamingContainer as GridViewRow; //»ñµÃÈÝÆ÷
    if(gvr != null)
    {
        int index = gvr.RowIndex;//index¾ ......

iisÎÞ·¨ä¯ÀÀaspÎļþ½â¾ö·½·¨

Ò»´óÔçÆðÀ´×°IIS¡£ÏÖÔÚÖÕÓÚ×°ºÃÁË¡£Ê®·Ö¸ÐлÒÔϵIJ©ÎÄ£¬ÌØ×ª¹ýÀ´·ÖÏí :)
תÖÁ£ºhttp://blog.sina.com.cn/s/blog_50070c4c0100bkq6.html
ÿÿװIIS£¬×Ü»áÅöµ½ÕâÑùÄÇÑùµÄÎÊÌ⣬´ÓĿǰ·´Ó¦Çé¿öÀ´¿´£¬IIS°²×°ºó¿Éä¯ÀÀHTML¾²Ì¬Îļþ£¬È´ÎÞ·¨ä¯ÀÀaspΪºó׺µÄ¶¯Ì¬Ò³Ãæ¡£
    ͨ¹ý¼¸´Îµ÷ÊÔºó£¬ÕÒµ½ÒÔϼ¸ÖÖ·½·¨£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ