Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 »ù±¾Óï·¨

  Ò»¡¢Î¯ÍÐ
       £¨1£© ίÍÐʱһÖÖÒýÓ÷½·¨µÄÀàÐÍ£¬Ò»µ©ÎªÎ¯ÍзÖÅäÁË·½·¨£¬Î¯Íн«Óë¸Ã·½·¨¾ßÓÐÍêÈ«ÏàͬµÄÐÐΪ£¬Î¯Íз½·¨µÄ´øŶÓÿÉÒÔÏñ
   ÆäËû·½·¨Ò»Ñù£¬¾ßÓвÎÊýºÍ·µ»ØÖµ£¬
      È磺   public delegate int PerformCa ......

asp.net Òþ²ØͼƬµÄÕæʵµØÖ·

 Default.aspx CSÎļþ´úÂë
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _De ......

ASP.NET ץȡÍøÒ³Ô´Îļþ

×öÏîÄ¿·ÖÏíµÄʱºòҪץȡÍøÒ³ÀïÃæµÄͼƬ£¬¼°ÊÓƵ£¬±êÍ·¡£µ±È»ÒªÈ¡µ½ÕâЩ¶«Î÷֮ǰ£¬±ØÐë°ÑÔ´Îļþ¶Á³öÀ´
£¬Äõ½Ô´ÎļþÖ®ºó¾ÍÓÃJSÕýÔòȡͼƬºÍÊÓƵÁË£¨JSÕýÔò»¹²»ÍêÃÀ£¬ÏȲ»Ìù£©
C#ץȡÍøÒ³Ô´Îļþ´úÂëÈçÏ£º
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web; ......

ASP.NET

Áù¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þÖÐµÄ Tab ¼ü˳Ðò¡¢½¹µãºÍ·ÃÎʼü
      ÈôÒªÔöÇ¿ÔÚ ASP.NET ÍøÒ³ÖÐʹÓÿؼþµÄÓû§ÌåÑ飬¿ÉÒÔÖ¸¶¨Óû§Í¨¹ý°´ Tab ¼üÏÔʾ ASP.NET Web ·þÎñÆ÷¿Ø¼þµÄ˳Ðò£¬²¢¿ÉÒÔÖ¸¶¨×î³õ´ò¿ªÒ³Ê±Ò³ÉϵÄÄĸö¿Ø¼þ¾ßÓн¹µã¡£
 
1¡¢Tab ¼ü˳Ðò
µ±ÔÚä¯ÀÀÆ÷ÖÐÏÔʾҳʱ£¬Óû§¿ÉÒÔʹÓà ......

ASP.NET

Æß¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þºÍ CSS Ñùʽ
      Äú¿ÉÒÔͨ¹ýÉèÖø÷ÖÖÍâ¹ÛÊôÐÔ£¨Èç ForeColor¡¢BackColor¡¢Height ºÍ Width£©À´¿ØÖÆ ASP.NET ·þÎñÆ÷¿Ø¼þµÄÍâ¹Û¡£´ËÍ⣬²¿·Ö¿Ø¼þÖ§³Ö¹«¿ª¸½¼ÓÑùʽÏà¹ØÉèÖõÄÑùʽ¶ÔÏó¡£
    ˵Ã÷£º ASP.NET ÍøÒ³ÔÚÔËÐÐʱ¿ÉÒÔµ±×÷ HTML Ò³¡£ÄúÒò´Ë¿ÉÒÔÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ