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

ASP.NET

¾Å¡¢ÒÔ±à³Ì·½Ê½Ìí¼Ó ASP.NET ¿Ø¼þ
      ÓÐʱ£¬ÔÚÔËÐÐʱ´´½¨¿Ø¼þ±ÈÔÚÉè¼Æʱ´´½¨¿Ø¼þ¸ü¿ÉÐС£ÀýÈ磬¼Ù¶¨ÓÐÒ»¸öËÑË÷½á¹ûÒ³£¬ÄúÒªÔÚÆäÖн«ÒÔ±íµÄÐÎʽÏÔʾ½á¹û¡£ÓÉÓÚ²»ÖªµÀÒª·µ»Ø¶àÉÙÏÒò´ËÄúÐèҪÿ¸ö·µ»ØµÄÏ̬Éú³ÉÒ»¸ö±íÐС£
      ˵Ã÷£º ÏÖÓпؼþͨ³£¿ÉÒÔÌṩ´Ó¶¯Ì¬´´½¨¿Ø¼þÖлñµÃµÄ¹¦ÄÜ¡£ÀýÈ磬Repeater¡¢DataList ºÍ RadioButtonList ¿Ø¼þ¿ÉÒÔÔÚÒ³ÔËÐÐʱ¶¯Ì¬´´½¨ÐлòÆäËû¿Ø¼þÔªËØ¡£
      Ҫͨ¹ý±à³ÌÏòÒ³Ìí¼Ó¿Ø¼þ£¬Ôò±ØÐëÓзÅÖÃпؼþµÄÈÝÆ÷¡£ÀýÈ磬Èç¹ûÄú´òËã´´½¨±íÐУ¬ÄÇôÈÝÆ÷¾ÍÊÇ±í¡£Èç¹ûûÓÐÃ÷ÏԵĿؼþÓÃ×÷ÈÝÆ÷£¬¿ÉÒÔʹÓà PlaceHolder »ò Panel Web ·þÎñÆ÷¿Ø¼þ¡£
ÔÚijЩÇé¿öÏ£¬¿ÉÄÜÐèÒª¼È´´½¨¾²Ì¬Îı¾ÓÖ´´½¨¿Ø¼þ¡£Òª´´½¨¾²Ì¬Îı¾£¬¿ÉÒÔʹÓà Literal »ò Label Web ·þÎñÆ÷¿Ø¼þ¡£È»ºó¿ÉÒÔ½«ÕâЩ¿Ø¼þÏñÆäËû¿Ø¼þÒ»ÑùÌí¼Óµ½ÈÝÆ÷ÖС£
ͨ¹ý±à³Ì·½Ê½½«¿Ø¼þÌí¼Óµ½ Web ÍøÒ³
1¡¢´´½¨¿Ø¼þµÄʵÀý²¢ÉèÖÃÆäÊôÐÔ£¬ÈçÏÂÃæµÄʾÀýËùʾ£º
Label myLabel = new Label();
myLabel.Text = "Sample Label";
˵Ã÷£º ¿Ø¼þͨ³£ÔÚÒ³µÄ³õʼ»¯½×¶ÎÌí¼Óµ½Ò³ÖÐ
2¡¢½«Ð¿ؼþÌí¼Óµ½Ò³ÉÏÒÑÓÐÈÝÆ÷µÄ Controls ¼¯ºÏÖУ¬ÈçÏÂÃæµÄʾÀýËùʾ£º
Panel Panel1= new Panel();
Panel1.Controls.Add(myLabel);
      ˵Ã÷£º ÒòΪ Controls ÊôÐÔÊÇÒ»¸ö¼¯ºÏ£¬Äú¿ÉÒÔʹÓà AddAt ·½·¨ÔÚÌض¨Î»Ö÷ÅÖÃпؼþ£¬ÀýÈçÔÚÆäËû¿Ø¼þµÄÇ°Ãæ¡£µ«ÊÇÕ⽫»áÔÚÒ³ÖÐÒýÈë´íÎó¡£
      ÏÂÃæµÄ´úÂëʾÀýÑÝʾÃûΪ DropDownList1 µÄ¿Ø¼þµÄ SelectedIndexChanged ʼþµÄʼþ´¦Àí³ÌÐò¡£¸Ã´¦Àí³ÌÐò´´½¨µÄ±êÇ© (Label) ¿Ø¼þµÄÊýÁ¿ºÍÓû§´ÓÏÂÀ­ÁбíÖÐËùÑ¡µÄÊýÁ¿Ïàͬ¡£ÕâЩ¿Ø¼þµÄÈÝÆ÷ÊÇÃûΪ Placeholder1 µÄ PlaceHolder Web ·þÎñÆ÷¿Ø¼þ¡£
private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
    DropDownList DropDownList1 = new DropDownList();
    PlaceHolder PlaceHolder1 = new PlaceHolder();
 
  // Get the number of labels to create.
 int numlabels = System.Convert.ToInt32(DropDownList1.SelectedItem.Text);
 for (int i=1; i<=numlabels; i++)
 {
   Label myLabel = new Label();
 
   // Set the label's Te


Ïà¹ØÎĵµ£º

ÔõôÅжÏÒ»¸öASP.NETµÄ³ÌÐòÊÇ·ñÈý²ã¼Ü¹¹

 Èý²ã¼Ü¹¹(3-tier application) ͨ³£ÒâÒåÉϵÄÈý²ã¼Ü¹¹¾ÍÊǽ«Õû¸öÒµÎñÓ¦Óû®·ÖΪ£º±íÏֲ㣨UI£©¡¢ÒµÎñÂß¼­²ã£¨BLL£©¡¢Êý¾Ý·ÃÎʲ㣨DAL£©¡£Çø·Ö²ã´ÎµÄÄ¿µÄ¼´ÎªÁË“¸ßÄÚ¾Û£¬µÍñîºÏ”µÄ˼Ïë¡£
  1¡¢±íÏֲ㣨UI£©£ºÍ¨Ë×½²¾ÍÊÇÕ¹ÏÖ¸øÓû§µÄ½çÃ棬¼´Óû§ÔÚʹÓÃÒ»¸öϵͳµÄʱºòËûµÄËù¼ûËùµÃ¡£
  2¡¢ÒµÎñ ......

Asp.Net ¶ÁÈ¡Excel

½ñÌìΪÁË×ö²åÈëÊý¾ÝÕÒÁ˲»ÉÙ¶«Î÷£¬ÒòΪ´ÓÀ´Ã»ÓÐд¹ý¶ÁдExcel£¬Ò²²»ÖªµÀ¸ÃÔõôд¡£ÏÂÃæµÄÊǽñÌìͨ¹ý²é¿´ÂÛ̳×Ô¼ºÐ´³öÀ´ÁË¡£
¹¦ÄÜÊǶÁÈ¡Excel È»ºó°ÑÊý¾Ý²åÈëÊý¾Ý¿â¡£Õâ¸ö¹¦ÄÜÔÚÆóÒµÀïÊǷdz£³£¼ûµÄÒ²Êdz£Óõģ¬Ï£Íû¶ÔÅóÓÑÃÇÓаïÖú£¡
/// <summary>
    /// µ¼Èëexcel
    /// </ ......

ASP.NET ¼¼ÇÉƪ

 Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspx ......

ASP.NET

Ò»¡¢ÈçºÎ£ºÊ¹Óà ASP.NET Óï·¨½«·þÎñÆ÷¿Ø¼þÌí¼Óµ½ ASP.NET ÍøÒ³
      ¿ÉÒÔͨ¹ýÔÚ .aspx ÎļþÖÐÖ±½ÓÉùÃ÷ Web ·þÎñÆ÷¿Ø¼þ½«ËüÌí¼Óµ½Ò³ÖС£
ÒÔÉùÃ÷·½Ê½Ìí¼Ó¿Ø¼þ
A¡¢Èç¹ûÄúλÓÚ¿ÉÊÓ»¯Éè¼ÆÆ÷ÖУ¬ÇëÇл»µ½Ô´±à¼­ÊÓͼ¡£
B¡¢½«±íʾ¸Ã¿Ø¼þµÄÔªËؼüÈë .aspx Îļþ¡£ÄúʹÓõľßÌåÓ﷨ȡ¾öÓÚÒªÌí¼ÓµÄ¿Ø¼þ£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ