ASP¿Ø¼þ´óÈ«½²½â
4.1 ³£ÓõÄHTML¿Ø¼þ
4.1.1 ±íµ¥¿Ø¼þ
ÓÃÓÚ½ÓÊÕ¿Í»§¶ËµÄÊäÈ룬²¢½«ÊäÈëµÄ½á¹ûÌá½»¸ø·þÎñÆ÷´¦Àí
1.HtmlForm¿Ø¼þ
ËùÓеÄWeb Form¿Ø¼þ±ØÐë°üº¬ÔÚÒ»¶ÔHtmlForm¿Ø¼þ±êÇ©ÖÐ
<Form
Id = "¿Ø¼þ±êʶ"
Runat = "Server"
Method = "Post | Get"
Action = "ÒªÖ´ÐгÌÐòµÄµØÖ·"
>
ÆäËû¿Ø¼þ
</Form>
2. HtmlInputBotton¿Ø¼þ
<Input
Id = "±»³ÌÐò´úÂëËù¿ØÖƵÄÃû³Æ"
Runat = "Server"
Type = "Bottom | Submit | Reset"
OnServerClick = "ʼþ´¦Àí³ÌÐò"
>
µ±ÎªSubmitʱ£¬ÊÇ´«ËÍÊý¾Ý£»µÈÓÚButtonʱ£¬¿ÉÒÔÓÃÀ´´¥·¢Ê¼þ³ÌÐò£»
ResetÊÇÓÃÀ´ÖØÖô°Ìå³ÉΪ³õʼ״̬
3. HtmlInputText¿Ø¼þ
<Input
Id="±»³ÌÐò´úÂëËù¿ØÖƵÄÃû³Æ"
Runat= "Server"
Type="Text | Password"
MaxLength = "¿É½ÓÊÕµÄ×Ö·û´®³¤¶È"
Size="Îı¾ÊäÈë¿òµÄ¿í¶È"
Value = "ÏÔʾÔÚÊäÈë¿òµÄĬÈÏÖµ"
>
4.HtmlInputRadioButton¿Ø¼þ
<Input
Id = "¿Ø¼þ±êʶ"
Runat = "Server"
Type = "Radio"
Checked = "true | false"
Name = "°´Å¥ËùÊôµÄ×é"
>
5.HtmlInputCheckBox¿Ø¼þ
<Input
Id = "¿Ø¼þ±êʶ"
Runat = "Server"
Type = "CheckBox"
Checked = "true | false"
>
6. HtmlInputFile¿Ø¼þ
<Input
Id = "¿Ø¼þ±êʶ"
Runat = "Server"
Type = File
Accept = "ÉÏ´«ÎļþËù²ÉÓõÄMIME±àÂë"
Size = "ÏÔʾ·¾¶µÄÊäÈë¿òµÄ¿í¶È"
MaxLength= "ÉÏ´«ÎļþµÄ×î´ó·¾¶³¤¶È"
PostedFile = "ÒªÉÏ´«µÄÎļþ"
>
7.HtmlInputImage¿Ø¼þ
<Input
Id="¿Ø¼þ±êʶ"
Runat="Server"
Type=Image
Src="ͼÏñµÄµØÖ·"
Align="ͼÏñµÄ¶ÔÆ뷽ʽ"
Alt="ͼÏñÎÞ·¨ÏÔʾʱÌæ´úµÄÎÄ×ÖµÄÄÚÈÝ"
Width="ͼÏñ±ß½çµÄ¿í¶È"
>
8. HtmlInputHiddenÒþ²ØÊäÈë¿Ø¼þ
µ±Ê¹ÓÃÕß´«ËÍÊäÈëµÄÊý¾Ý£¬Í¬Ê±Ò²´«ËͲ»ÐèҪʹÓÃÕßÊäÈëµÄÊý¾Ýʱ£¬
¿ÉÒÔʹÓÃÒ
Ïà¹ØÎĵµ£º
¸Õ¸Õ ¿´µ½Õâôһ¸öÎÊÌ⣬ÕâÀïÒ²×ö¸ö±ê¼Ç£ºhttp://topic.csdn.net/u/20080411/14/7b0f9da5-0413-4149-91e9-72c3df3018a3.html?seed=327251592
µÚÒ»ÖÖ·½Ê½£º
//ÔÚVisual Studio 2008Öе÷ÊÔͨ¹ý
testPop_Page.aspx:Ö÷Ò³ÃæASPX´úÂë
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  ......
°²×°¹ý³Ì˳³©£¬ASPÒ³ÃæÔÚÆäËü»·¾³ÏÂÄÜÕý³£µ÷ÊÔ£¬Îļþ·¾¶ÅäÖÃÕýÈ·Çé¿öÏ£¬²»Äܵ÷ÊÔASP Ò³Ã棬²Î¿¼Ò»ÏÂÄÚÈÝ
µÚÒ»
Ð޸Ķ˿ÚÅäÖà һЩÓÅ»¯ºÍ·À»¤Èí¼þ¶Ô¶Ë¿ÚÓÐÌØÊâµÄ“Õչ˔
µÚ¶þ
³£¼ûµÄ“500ÄÚ²¿·þÎñÆ÷´íÎó”Íò½ðÓÍ£º
1¡¢Ð¶ÔØ“internetÐÅÏ¢·þÎñ(IIS)”£¬
2¡¢¿´¿´Ê¼þ²é¿´Æ÷ÀïÓÐû ......
ÒÔÏÂÊÇ·¢ÔÚ÷×ÓÂÛ̳µÄÌù×Ó£¬×ª·¢¹ýÀ´£¬Ï£Íû¸øÓõÃ×ŵĺüÓѲο¼¡£
ÎҵijÌÐòÒÔÇ°Ò»Ö±ÊÇÓû¨Éú¿Ç°ó¶¨IPʵÏÖµÄÔ¶³Ì£¬ÓÉÓÚ¿Í»§·þÎñÆ÷ºÍ¿Í»§¶Ë¶¼ÊÇͨ¹ý¿í´øÉÏÍø£¬Ò»°ãµÄ²Ù×÷£¨¿ª½ø»õµ¥¡¢ÏúÊÛµ¥µÈ£©ËÙ¶ÈÒ²»¹²»´í£¬µ«ÊÇÔÚÔ¶³Ì¿Í»§¶ËÐÞ¸ÄÉÌÆ·×ÊÁÏ£¨10000¶àÌõ¼Ç¼£©¡¢²éѯһ¶ÎʱÆڵĽøÏú´æÁ÷Ë®£¨Ò»ÖÜ5000ÌõÒÔÉÏ£©µÈÉæ¼°µ½È¡¼Ç¼Á¿´óµ ......
dim conn,connstr
Set conn = Server.CreateObject("ADODB.Connection")'´´½¨Ò»¸öÊý¾Ý¿âÁ´½Ó¶ÔÏóconn£¬·½±ãºóÃæµ÷ÓÃ
connstr="Provider=SQLOLEDB;Data Source=(local);Initial Catalog=111;User ID=sa;Password=1234;" '´´½¨Ò»¸öÊý¾Ý¿âµÄrecordset¶ÔÏ󣬷½±ãÒÔºóµ÷ÓÃ
conn.Open connstr'´ò¿ªÊý¾Ý¿â ......