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

ASP.NET C# ÑéÖ¤Âë Ö§³ÖÖÐÎÄ Ôëµã ÍäÇú

/// <summary>
        /// ¸ù¾ÝÖ¸¶¨²ÎÊý·µ»ØBitMap¶ÔÏó
        /// ÒýÓÃÈçÏ£º
        /// using System.Drawing;
        /// µ÷ÓÃÀý×ÓÈçÏ£º
        ///     eg1¡¢±£´æΪͼÏóÎļþΪ
        ///     Bitmap srBmp = srBitmap(srs);
        ///     srBmp.Save(Directory.GetCurrentDirectory() + "\\srs.gif", System.Drawing.Imaging.ImageFormat.Gif);
        ///     srBmp.Dispose();
        ///     eg2¡£ÍøÒ³Öе÷Ó÷½Ê½ÈçÏÂ
        ///     Bitmap srBmp = srBitmap(srs);
        ///     System.IO.MemoryStream srMS = new System.IO.MemoryStream();
        ///     srBmp.Save(srMS,System.Drawing.Imaging.ImageFormat.Gif);
        ///     Response.ClearContent();
        ///     Response.ContentType = "image/gif";
        ///     Response.BinaryWrite(srMS.ToArray());
        ///     srBmp.Dispose();
        /// </summary>
        /// <param name="srs"></param>
        /// <returns></returns>
        public static Bitmap srBitmap(string srs)
        {
     


Ïà¹ØÎĵµ£º

c#ºÍjavascript½»»¥

ÔÚasp.net開發ÖУ¬經³£會Óõ½áą́ºÍǰ̨µÄ½»»¥£¬¾Í´Ë總結ÁËÒ»點c#ºÍjavascriptÏ໥²Ù×÷µÄ·½·¨
¡¡¡¡1.ÔÚáą́c#´ú碼ÖÐ調ÓÃjacascriptµÄ·½·¨
¡¡¡¡javascript´ú碼£º
¡¡¡¡<script type="text/javascript" language="javascript">
¡¡¡¡function test()
¡ ......

asp.net ÑéÖ¤ÕýÔò±í´ïʽÊÕ²Ø

ÕûÊý»òÕßСÊý£º^[0-9]+\.{0,1}[0-9]{0,2}$
Ö»ÄÜÊäÈëÊý×Ö£º"^[0-9]*$"¡£
Ö»ÄÜÊäÈënλµÄÊý×Ö£º"^\d{n}$"¡£
Ö»ÄÜÊäÈëÖÁÉÙnλµÄÊý×Ö£º"^\d{n,}$"¡£
Ö»ÄÜÊäÈëm~nλµÄÊý×Ö£º¡£"^\d{m,n}$"
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º"^(0|[1-9][0-9]*)$"¡£
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º"^[0-9]+(.[0-9]{2})?$"¡£
Ö»ÄÜÊäÈëÓÐ1~3λСÊýµÄ ......

Asp.Netǰ̨µ÷Óúǫ́±äÁ¿

1.Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspxÖУº < %= a ......

ÔÚASP.NETÖÐʹÓÃFCKeditorµÄ·½·¨

֮ǰÓõÄÔÚÏ߱༭Æ÷ÊÇDotNetTextBox £¬²¢ÇÒÔøÒ»¶È¾õµÃËüÒ쳣ǿ´ó£¬Èç¿ÉÒÔ¸øÉÏ´«µÄͼƬ¼ÓÎÄ×Öˮӡ»òÕßͼƬˮӡ£¬µ«ºóÀ´·¢ÏÖÆäÉÏ´«µÄͼƬ²»ÈÝÒ×¹ÜÀí£¬¶¼¼·ÔÚÒ»¸öÎļþ¼ÐÀïÃ棨Ãâ·Ñ°æ£¬¸¶·Ñ°æºÃÏñ¿ÉÒÔ·ÖÎļþ¼ÐÉÏ´«±£´æͼƬ£©£¬²¢ÇÒ¶ÎÊ׿ոñ×ܲ»ÊÇËù¼û¼´ËùµÃ£¬Îұ༭ʱ¿ÕÁËÁ½¸ö×Ö·ûµÄλÖ㬵½ÁËǰ̨ҳÃæµÄʱºòÖ»ÓÐÒ»¸ö×Ö·û£¬ËùÒÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ