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

ASP.NET(ASPX)Ò³Ãæ»ñÈ¡form±íµ¥Ìá½»ÔªËصÄÖµ


html֪ʶ£¬Request.Form
½ÓÊÕµÄÊÇNameÖµ£¬¶ø·ÇIDÖµ
ÈôÊÇÓÃaspxÒ³ÃæÈ¡Öµ£¬±íµ¥ÖеÄrunat="server"Ҫȥµô¡£
asp.net֪ʶ£¬asp.netµÄ¿Ø¼þµÄIDºÍNameÖµÊÇÒ»ÑùµÚ£¬µ«ÊÇÆäÔÚ¿Í»§¶Ë±íÏÖÊÇcontrol.clientID¶ø·Ç
control.ID
asp.net±¾ÉíÒ²ÊÇ¿ÉÒÔ¿çÒ³Ìá½»µÎ£¬Èç¹ûÊÇʹÓÃ×Ô¼º´øµÄ¿çÒ³Ìá½»¾Í²»´æÔÚÉÏÊöÎÊÌ⣬²»¹ýasp.net×Ô¼º´øµÄ¿çÒ³Ìá½»ÓÐÁíÍâµÄ½Ó
ÊÕ·½Ê½

ʵÀý
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
" >
<head>
    <title>ÎÞ±êÌâÒ³</title>
</head>
<body>
    <form id="formPost" action="Default.aspx" method="post">
        <div>
            <input name="txtPostValue" type="text" />
            <input type="submit" /><br />
            <br />
            <br />
            <br />
            <input name="filePic" type="file" /></div>
    </form>
</body>
</html>
<%@ Page Language="C#"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
" >
<head runat="server">
    <title>ÎÞ±êÌ


Ïà¹ØÎĵµ£º

Asp.netÉú³Éhtm¾²Ì¬ÎļþµÄÁ½ÖÖ;¾¶

ÏÖÔںܶàÍøÕ¾ÌرðÊÇ×ÊѶÀàµÄ¶¼°ÑÄÚÈÝÉú³É¾²Ì¬Ò³£¨htm\html\shtmlµÈ£©£¬ÕâÀà×ܽáÁËÒ»ÏÂÁ½ÖÖÉú³É¾²Ì¬Ò³µÄ·½·¨²¢×öÁËÒ»¸öDemoÎļþ¹©´ó¼ÒÏÂÔØ¡£
·Ö±ðÊÇͨ¹ýÄ£°å£¨±È½Ï³£Ó㩺͸ù¾ÝurlÉú³É£¨²»µ½Íò²¿ÔòÒÔ²»Óã¬ÒòΪÕâÖз½Ê½Ö»ÄÜ»ñÈ¡htmlµÄ²¿·Ö£©£º
Asp.netÉú³É¾²Ì¬Îļþ£¨¸ù¾Ýʱ¼ä×Ô¶¯ÃüÃû±£³Ö£¬Ä¬ÈÏÀ©Õ¹ÃûÊÇhtm¿ÉÒÔ×ÔÐÐÐ޸ģ©¡ ......

asp.net¿Ø¼þ¿ª·¢»ù´¡(1)

asp.net±¾ÉíÌṩÁ˺ܶà¿Ø¼þ,Ìṩ¸øÎÒÃÇÕâЩ±È½ÏÀÁ¶èµÄÈËʹÓÃ,ÎÒÈÏΪ¿Ø¼þµÄ×÷ÓþÍÔÚ´Ë,ÒòΪÎÒÃDz»ÏëÖظ´¹¤×÷,ËùÒÔÒª´´½¨Ëü,Õâ¸ö±¾Éí±ãÊÇÒ»¸öÐèÇóµÄ¹Øϵ,ËùÒÔѧϰ¿Ø¼þ¿ª·¢ºÜÓÐÒâ˼.
wroxÍøÕ¾ÉÏÓб¾Êé Professional ASP.NET 2.0 Server Control and Component Development
ÏÖÔÚ»¹Ã»Óгö°æ,µ«ÍøÕ¾ÉϷųöÁË´úÂë,ËùÒÔÕýºÃÏÂÔعý ......

asp.net¼òµ¥ÊµÏÖÒ³Ãæ»»·ô

ʵÏÖÒ³Ãæ»»·ô ¸øhtml form Ìí¼ÓÏàÓ¦µÄÑùʽ ´úÂëÈçÏÂ:
private string _StyleClass;
public string StyleClass
{
get { return _StyleClass; }
set { _StyleClass = value; }
}
private void StyleForm()
{
HtmlForm Form1 = this.FindControl("form1") a ......

asp.net ·µ»ØÉÏÒ»Ò³µÄʵÏÖ·½·¨

·µ»ØÉÏÒ»Ò³µÄÕâ¸ö¶«¶«ÔÚÎÒÃÇ×öÏîÄ¿µÄʱºòÒ»°ãÊÇÓÃÓÚÌîдÍê±íµ¥ºóÈ·ÈϵÄʱºò£¬ÓжÔÔ­À´ÊäÈëµÄÊý¾Ý½øÐÐÐÞ¸Äʱ
Óõģ¬»òÕßÊÇÒòΪÍøվΪÁË·½±ãä¯ÀÀÕ߶øÓÐÐÄÌí¼ÓµÄÒ»¸ö¶«¶«£¬Ò»°ãÕâÖÖ¹¦ÄܵÄʵÏÖÔÚASP.netÖж¼ÊÇÓÃÒ»¸öbuttonµÄ¿Ø¼þÀ´ÊµÏֵģ¬ÊµÏֵķ½·¨ÓкÜ
¶à£¬½ñÌìÇ¡ºÃÔÚ×öÏîĿʱÅöµ½ÒªÓÃÕâ¸ö¶«¶«£¬ÎҾͰÑÄÜʵÏÖ" · ......

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ºÅ