asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂë
asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
WebForm1.aspx£º
< INPUT ID="TXT" TYPE="TEXT" RUNAT="SERVER" VALUE="AAAAAA">
< INPUT TYPE="BUTTON" RUNAT="SERVER" VALUE="BTNTEST" ID="BUTTON1" NAME="BUTTON1">
WebForm1.aspx.cs£º
private void Button1_ServerClick(object sender, System.EventArgs e)
{
// ·½·¨1£ºÍ¨¹ýControl²éÕÒ
Control ctrl = FindControl("txt");
HtmlInputText txtCtrl= (HtmlInputText)ctrl;
Response.Write(txtCtrl.Value);
// ·½·¨2£ºÖ±½ÓʹÓÿؼþµÄID
Response.Write(txt.Value);
}
Ïà¹ØÎĵµ£º
u
<BODY></BODY>±ê¼ÇµÄÊÇÍøÒ³µÄÖ÷Ì壺ËüµÄÊôÐÔÓУºtext:Éè¼ÆÒ³ÃæÎÄ×ÖµÄ×ÖÌåÑÕÉ«£» Bgcolor:É趨ҳÃæµÄ±³¾°ÑÕÉ«£»Background:
É趨ҳÃæµÄ±³¾°Í¼Ïñ£» BGPROPERTIES£ºÉ趨ҳÃæµÄͼƬÊÇ·ñËæ×ÅÒ³Ãæ¹ö¶¯¶ø¹ö¶¯£»Link:É趨µÄÁ´½ÓĬÈÏÑÕÉ«£»Alink£ºÉ趨Êó±ê½Ó½üʱµÄÁ´½ÓÑÕÉ«£»Vlink£ºÉ趨ÒѾ·ÃÎʹýµÄÁ ......
Asp.NetÖÐÓÐÒ»Ì×ÓëÓû§Ïà¹ØÁªµÄÊôÐÔÉèÖ㬿ÉÒÔͨ¹ýÔÚWebConfigÀïÅäÖÃÀ´Ö±½ÓʹÓã¬ËûµÄ×÷ÓÃΪ
´æ´¢ºÍʹÓÃΨһÓëÓû§¶ÔÓ¦µÄÐÅÏ¢
Õ¹ÏÖ¸öÈË»¯°æ±¾µÄWebÓ¦ÓóÌÐò
Óû§µÄΨһÉí·Ý±êʶÔÚÔٴηÃÎÊʱʶ±ðÓû§
Asp.Net ProfileÌṩµÄ¸úÓû§Ïà¹ØµÄÀàÐͶ¼ÊÇÇ¿ÀàÐÍ
Ê×ÏÈÉú³ÉÊý¾Ý¿â½Å±¾£¬Ê¹ÓÃVisual Studio 2005 ÃüÁîÌáʾ£¬ÊäÈë ......
ÈÏʶASP.NETÅäÖÃÎļþWeb.config
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢(Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½)£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈ쵀 ......
±¾ÎĽ«Ì½ÌÖasp.netÏÂʵÏÖÎļþÉÏ´©½ø¶ÈÌõµÄ·½·¨¡£
Ò»°ãÇé¿öÏ£¬ÒªÊµÏÖÉÏ´«½ø¶ÈÌõÊ×ÏÈҪʵÏÖÉÏ´«Îļþ·Ö¿é¶ÁÈ¡£¬¶øĬÈÏÇé¿öÏ£¬iis½«Ö±½Ó°ÑÉÏ´«µÄÎļþÒ»´Î¶ÁÈëµ½ÄÚ´æÖУ¬ËùÒÔ±¾´¦µÄÄѵãÔÚÓÚÀ¹½ØiisµÄÎļþÉÏ´«¹ý³Ì£¬×ª¶ø×Ô¼ºµÄʵÏÖ·½Ê½¡£ËùÒÔ£¬ÎÒÃÇ¿ÉÒÔʵÏÖÒ»¸öIHttpModuleÀ´´¦ÀíÉÏ´«¹ý³Ì¡£¾ßÌåµÄ¹ý³ÌÊÇApplication_BeginReque ......
½ñÌìÔÚÓÃDataListµÄÄ£°åÁеÄʱºòÏ°¹ßÐÔµØÏñÔÚ03ÖÐÄÇÑùÈ¥¸øÄ£°åÁеİó¶¨×ֶμӸö´¦Àíº¯Êý£º
< asp:Label ID = " Label1 " runat = " server " Text = ' <%#ConvertState(Bind("Status"))%> ' ></ asp:Label >
¿ÉÊǾ¹È»³ö´í£ºµ±Ç°ÉÏÏÂÎÄÖв»´æÔÚÃû³Æ“Bind” ......