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

ASP.NET¿Ø¼þ¿ª·¢»ù´¡Ö®ÀàÐÍת»»Æ÷dzÎö

ASP.NET¿Ø¼þ¿ª·¢»ù´¡Ö®ÀàÐÍת»»Æ÷1.ÈÏʶĬÈÏÊôÐÔä¯ÀÀÆ÷Ö§³Ö
ÈÃÎÒÃÇÔÙÈÏʶһÏÂÊôÐÔ,´ó¼ÒÖªµÀÿ¸öÊôÐÔ¶¼ÊÇÓÐÀàÐ͵Ä,×îÊìϤ¾ÍÊÇstring,intÕâЩÀàÐÍÁË,VS2005ÊôÐÔä¯ÀÀÆ÷¶ÔÕâЩÊôÐÔÀàÐͽøÐÐÁËʶ±ð,
ÈçÏÂÀý×Ó
(1)table¿Ø¼þµÄHeightÊôÐÔ,µ±ÄãÉèÖÃÊôÐÔΪ×Ö·û´®Ê±,ÔòÌáʾ´íÎóÐÅÏ¢
 
(2)µ±ÊôÐÔÀàÐÍΪColorÊôÐÔʱ,ÊôÐÔä¯ÀÀÆ÷ΪÄãÌṩÑÕÉ«Ñ¡ÔñÆ÷
 
(3)µ±ÊôÐÔÀàÐÍΪö¾ÙÀàÐÍʱ,ÊôÐÔä¯ÀÀÆ÷ÔòÖ§³ÖÏÂÀ­¿òÑ¡Ôñ
 
(4)µ±ÀàÐÍÊÇʱ¼äÀàÐÍ,ÊôÐÔä¯ÀÀÆ÷ÔòÖ§³Öʱ¼äÑ¡ÔñÆ÷
 
ͨ¹ýÉÏÃæ,ÎÒÃÇÈÏʶµ½ÊôÐÔä¯ÀÀÆ÷ĬÈÏ»áÅбðÊôÐÔÀàÐÍ,µ±ÊôÐÔÖµ¸úÊôÐÔÀàÐͲ»·ûʱ,Ôò»áÌáʾ´íÎóÐÅÏ¢.ÕâÀïÎÒÃÇ»¹ÈÏʶµ½ÊôÐÔä¯ÀÀÆ÷ĬÈÏΪһЩÊôÐÔÀàÐÍÌṩÁ˱ãÀû
ASP.NET¿Ø¼þ¿ª·¢»ù´¡Ö®ÀàÐÍת»»Æ÷2.ÊôÐÔ±íÏÖÐÎʽµÄ¶àÑùÐÔ
ÔÚ¶¨Òå¿Ø¼þÊôÐÔʱ,¿ÉÒÔÖ±½ÓÕâÑù¶¨Òå,ÊôÐÔ¶¼Îª×Ö·û´®ÐÎʽ
﹤asp:TextBox ID="TextBox1" runat="server"           Height="11" BackColor="Blue"           ForeColor="#FF8000"﹥²âÊÔ﹤/asp:TextBox﹥ 
ÓôúÂë±íʾÔòÊÇÕâÑù,ÔÚºǫ́´úÂëÖж¨ÒåµÄÊôÐÔÀàÐͱØÐëÏà¶ÔÓ¦,BackColor±ØÐëΪColorÀàÐÍ,·ñÔòÔò»á³ö´í,µ±ÔÚÒ³Ãæ³ÊÏÖʱ,ÔòÒÔ×Ö·û´®ÐÎʽ³ÊÏÖ.
protected void Page_Load(object sender, EventArgs e)      //TextBox1.BackColor = "blue";     TextBox1.BackColor = System.Drawing.Color.Red;     TextBox1.BackColor = System.Drawing.Color.fromName("blue");  
ͨ¹ýÉÏÃæ,ÎÒÃÇÈÏʶµ½ÊôÐÔÀàÐÍÐèҪת»»,ÕâÀï±ãÒªÒý³öÎÒÃÇËùÒª½²µÄ»°Ìâ,ÀàÐÍת»»Æ÷.
ÀýÈç,µ±BackColor="Blue" ʱ,Ôò»á¼¤»îÒ»¸öÀàÐÍת»»Æ÷ʵÀý½«×Ö·û´®Öµ×ª»»³ÉÉùÃ÷µÄÀàÐÍ(¼´½«"blue"ת»»³ÉColorÀàÐÍ,È»ºó¸³¸øBackColor.
.netÀà¿âÖеĻù±¾ÀàÐͺÍÐí¶àÀàÐͶ¼ÓÐÓëÆäÏà¹ØÁªµÄÀàÐÍת»»Æ÷.
Ò»°ã³£ÓõÄÀàÐÍÓÐString,Int,Boolean,DateTime,EnumµÈÀàÐÍ,ÆäÀàÐÍÒÑĬÈÏÓëÆäÏà¶ÔÓ¦µÄÀàÐÍת»»Æ÷¹ØÁªÆðÀ´.
Èç
ColorÀàĬÈϹØÁªµÄÀàÐÍת»»Æ÷System.Drawing.ColorConverter
FontIntoÀàĬÈϹØÁªµÄÀàÐÍת»»Æ÷System.Drawing.FontConverter
ÀàÐÍת»»Æ÷µÄ»ùÀàΪSystem.ComponentModel.TypeConverter,ËùÓеÄÀàÐÍת»»Æ÷¶¼


Ïà¹ØÎĵµ£º

Ò»Ì×»ùÓÚasp.netµÄ°²È«Ð£Ñé»úÖÆÓ¦ÓÃÄ£ÐÍ £¡

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;
using Syste ......

asp.netÐÔÄÜÓÅ»¯×ܽá

1. C#ÓïÑÔ·½Ãæ
1.1 À¬»ø»ØÊÕ
¡¡À¬»ø»ØÊÕ½â·ÅÁËÊÖ¹¤¹ÜÀí¶ÔÏóµÄ¹¤×÷£¬Ìá¸ßÁ˳ÌÐòµÄ½¡×³ÐÔ£¬µ«¸±×÷ÓþÍÊdzÌÐò´úÂë¿ÉÄܶÔÓÚ¶ÔÏó´´½¨±äµÃËæÒâ¡£
¡¡1.1.1 ±ÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨
¡¡ÓÉÓÚÀ¬»ø»ØÊյĴú¼Û½Ï¸ß£¬ËùÒÔC#³ÌÐò¿ª·¢Òª×ñÑ­µÄÒ»¸ö»ù±¾Ô­Ôò¾ÍÊDZÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨¡£ÒÔÏÂÁоÙһЩ³£¼ûµÄÇéÐΡ£
¡¡1.1.1.1 ±ÜÃâÑ­»·´´½¨¶ÔÏ ......

ASP.NetÖг£¼ûµÄϵͳ¶ÔÏó

page£ºpage¶ÔÏóÊÇÖ¸Ò³Ãæ×ÔÉíµÄ·½Ê½£¬ÔÚÕû¸öÒ³ÃæµÄÖ´ÐÐÆÚÄÚ£¬¶¼¿ÉÒÔÓøöÔÏó¡£
Request£º´Ë¶ÔÏó·â×°ÁËÓÉWebä¯ÀÀÆ÷»òÕßÆäËû¿Í»§¶ËÉú³ÉµÄHTTPÇëÇóµÄϸ½Ú£¬Ìṩ´Óä¯ÀÀÆ÷¶ÁÈ¡ÐÅÏ¢»òÕ߶ÁÈ¡¿Í»§¶ËÐÅÏ¢µÈ¹¦ÄÜ£¬ÓÃÓÚÒ³ÃæÇëÇóÆÚ¡£
Response£º´Ë¶ÔÏó·â×°ÁË·µ»Øµ½HTTP¿Í»§¶ËµÄÊä³ö£¬ÌṩÏòä¯ÀÀÆ÷Êä³öÐÅÏ¢»òÕß·¢ËÍÖ¸ÁÓÃÓÚÒ³ÃæµÄÖ´ÐÐ ......

ASP.NET·ÀSQL×¢Èë½Å±¾³ÌÐò

public class SqlCheck  
{  
    public SqlCheck()  
    {  
        //  
        // TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼­  
  & ......

ASP.NETǰ̨javascriptÓëc#ºǫ́´úÂëµ÷ÓÃ

netÖÐC#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃÎÊÌâ¡£
¡¡¡¡ÎÊ£º
¡¡¡¡1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
¡¡¡¡·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ