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

ASp.net Éú³ÉÒ³Ãæ£¬·þÎñÆ÷¿Ø¼þ¶ÔÓ¦html±êÇ©

Server controls
Besides HTML elements, ASP.NET uses server controls which have similar definition to HTML elements. The important difference between the two is that, unlike HTML elements, server controls are accessible from the code-behind or: the server side. This is determined with runat="server" attribute in their definitions. Server controls have different attributes than HTML elements and they are called properties. For example, Image control (which is equivalent to IMG element) has ImageUrl property instead of SRC attribute. But Visual Studio has very useful feature called intellisense which is some kind of autocomplete for your code and that will help you explore various properties.
Imoprtan note: Always style elements using CSS insted of server controls properties.
Server controls are much simpler than you might think. Each server control is rendered to a known HTML element on the client. Here is a list of server controls with their HTML equivalents and selectors that can be used from CSS or jQuery.
Server controlHTML equivalentCSS/jQuery selector
Label
<span>
span
TextBox
<input type="text">
input[type="text"]
TextBox (TextMode="Password")
<input type="password">
input[type="password"]
TextBox (TextMode="Multiline")
<textarea>
textarea
Button
<input type="submit">
input[type="submit"]
LinkButton
<a href="postback options">
a
ImageButton
<input type="image">
input[type="image"]
HyperLink
<a>
a
DropDownList
<select>
select
ListBox
<select size="n">
select
CheckBox
<input type="checkbox"> with <label>
input[type="checkbox"]
CheckBoxList
<table> with a list of <input type="checkbox">
table or table input[type="checkbox"] for items
RadioButton
<input type="radio"> with <label>
input[type="radio"]
RadioButtonList
<table> with a list of <input type="radio">
table or table input[type="radio"] for items
Ima


Ïà¹ØÎĵµ£º

ASP.NET ÑÝÁ·£ºÑéÖ¤ Web ´°ÌåÒ³ÖеÄÓû§ÊäÈë


      ±¾ÑÝÁ·²ûÊÍÈçºÎʹÓà ASP.NET ÑéÖ¤³ÌÐò¿Ø¼þ¼ì²éÍøÒ³ÖеÄÓû§ÊäÈë¡£ÄúÎÞÐè´úÂë¾Í¿ÉÒÔʹÓÃijЩ×Ô¶¯Ö´ÐÐËùÓмì²éµÄ¿Ø¼þ¡£´ËÍ⣬Äú»¹½«Í¨¹ý±àд´úÂë´´½¨Ò»¸ö×Ô¶¨ÒåÑéÖ¤³ÌÐò£¬¸Ã¹ý³Ì½«ÑÝʾÈçºÎ½«Äú×Ô¼ºµÄÂß¼­Ìí¼Óµ½Ò³µÄÑéÖ¤¿ò¼ÜÖС£×îºó£¬Äú½«Ñ§Ï°ÈçºÎ¸ù¾ÝÓû§ÔÚÒ³ÉÏËù×öµÄÑ¡ÔñÓÐÌõ¼þµØÑéÖ¤Óû§ ......

HTML DOM deleteRow() ·½·¨

http://www.w3school.com.cn/htmldom/met_table_deleterow.asp
¶¨ÒåºÍÓ÷¨
deleteRow() ·½·¨ÓÃÓÚ´Ó±í¸ñɾ³ýÖ¸¶¨Î»ÖõÄÐС£
Óï·¨
tableObject.deleteRow(index)
˵Ã÷
²ÎÊý index Ö¸¶¨ÁËҪɾ³ýµÄÐÐÔÚ±íÖеÄλÖá£ÐеıàÂë˳Ðò¾ÍÊÇËûÃÇÔÚÎĵµÔ´´úÂëÖгöÏÖµÄ˳Ðò¡£<thead> ºÍ <tfoot> ÖеÄÐÐÓë±íÖÐÆäËüÐÐÒ»Æð ......

ÈÏʶASP.NETÅäÖÃÎļþWeb.config

Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉ ......

ASP.NETµÄÍêÈ«¿ÉÊÓ»¯Ajax¿ª·¢²âÊÔ

ÎÒ×Ô¼ºÐ´¸ö¿ìËÙÈëÃŵÄASP.NETµÄÍêÈ«¿ÉÊÓ»¯Ajax¿ª·¢£¬ÓÃVisual studio2008ÀïÃæ×Ô´øµÄAJAX Extensions¿Ø¼þ¡£
1£¬Ê×ÏÈ£¬ÍùÒ³ÃæÀïÃæ×§Ò»¸öScriptManager¿Ø¼þ£¨×¢²á½Å±¾£¬±ØÐëÔÚËùÓзþÎñÆ÷¿Ø¼þ֮ǰ³öÏÖ£©
2£¬ÍùÒ³ÃæÀï×§Ò»¸öUpdatePanel¿Ø¼þ£¨¾Ö²¿Ë¢Ð¿ؼþ£©
3£¬ÔÚUpdatePanel¿Ø¼þµÄÃæ°åÀקһ¸öTextBox¿Ø¼þTextBox1ºÍÒ»¸öLa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ