Ñ»·ÎªTextBox¸³Öµ (asp.net C#)
×¢Òâ:
ÔÚʹÓÃFindControlʱ,Ò»¶¨ÒªÔÚ×îÌù½ü²éÕÒ¶ÔÏóµÄÍâ±ß¼ÓÉϸöÈÝÆ÷,Èç¹ûÄãÖ±½ÓÓÃthis.FindControl,»òPage.FindControlÄÇô¾Í»á¾³£³öÏÖ佫¶ÔÏóÉèÖõ½ÊµÀý
µÄ´íÎó,ËùÒÔ×îºÃ¼ÓÒ»¸öÈÝÆ÷,ÄÇôÕâÀï¼ÓµÄDIV¾ÍÊÇÒ»¸öÈÝÆ÷,ΪÁËÈÃFindControlÔÚIDΪ"TextBoxs"µÄDIVÄÚÈ¥ÕÒÃûΪcom1,com2,com3µÄTextBOx;
<div id="TextBoxs" runat="server">
<asp:TextBox ID="com1" runat="server" ></asp:TextBox>
<asp:TextBox ID="com2" runat="server" ></asp:TextBox>
<asp:TextBox ID="com2" runat="server" ></asp:TextBox>
</div>
¼ÙÈçÊý¾Ý¿âÖÐ×Ö¶ÎcomnameµÄ´æ´¢·½·¨Îª:"ͼƬ,ͼÊé,½Ì³Ì"ÖмäÓж¹ºÅ
string[] comArray=dr["comname"].tostring().split(',');
foreach(int i = 0;i<comArray.Lenth;i++)
{
((TextBox)this.TextBoxs.FindControl("com"+(i+1).tostring())).text=comArray[i].tostring();
}
ºÃ,ÄÇÏÖÔÚ¾ÍÍê³ÉÁË
Ïà¹ØÎĵµ£º
ÌõÐÎÂëÊÇÆù½ñΪֹ×á¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
FCKeditor½éÉÜ
¡¡¡¡FCKeditorÊÇÒ»¸ö¹¦ÄÜÇ¿´óÖ§³ÖËù¼û¼´ËùµÃ¹¦ÄܵÄÎı¾±à¼Æ÷£¬¿ÉÒÔΪÓû§Ìṩ΢ÈíofficeÈí¼þÒ»ÑùµÄÔÚÏßÎĵµ±à¼·þÎñ¡£Ëü²»ÐèÒª°²×°ÈκÎÐÎʽµÄ¿Í»§¶Ë£¬¼æÈݾø´ó¶àÊýÖ÷Á÷ä¯ÀÀÆ÷£¬Ö§³ÖASP.Net¡¢ASP¡¢ColdFusion ¡¢PHP¡¢Java¡¢Active-FoxPro¡¢Lasso¡¢Perl¡¢ython µÈ±à³Ì»·¾³¡£
¡¡¡¡¹Ù·½ÍøÕ¾http://www.fckedit ......
² Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
² Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
² ......
12 ASP.NET MVC Best Practices
M
DomainModel != ViewModel
Use ActionFilters for “shared” data
V
Do NEVER user code-behind
Write HTML each time you can
If there is an if, write an HtmlHelper
Choose your view engine carefully
C
Delete the AccountController
Isolate Controllers fro ......