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

asp.netÖеÄGridViewÎÊÌâ

ÎÒÔÚ Page_Load ÀïдÁË
if(!IsPostBack){
  GridView1.DataSource=GroupManager.GetGroups();//GetGroups ·µ»ØµÄÊÇ IList<Group>
  GridView1.DataBind();
}

¿ÉÎÒÔÚ Submit_Click Àïд´úÂë,È´µÃ²»µ½GridView1µÄÊý¾Ý,GridView1 µÄÊý¾ÝÊÇ¿ÕµÄ,Ò²¾ÍÊÇÊý¾ÝûÓаóÉÏÈ¥,µ«Êý¾ÝÊÇÓеÄ,Ö»ÊÇButton´¥·¢Clickºó¾Í¶ªÊ§ÁË!

ÕâÊÇÔõô»ØÊÂÄØ?
°¥£¬Ä㻹ÊÇÌù´úÂë°É¡£

clas Group
{
  public ÀàÐÍ ÊôÐÔÃû { get; set; }
  ...
  ...
}

µÄÓÐ?

C# code:
public partial class global_global_aclmanager : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int groupid = MsRequest.GetQueryInt("groupid", 0);

if (groupid == 0) throw new Exception("²ÎÊý´íÎó");

if (!IsPostBack)
{
BindGrid(groupid);
}
}

private void BindGrid(int groupid)
{
GridView1.DataSource = ACLManager.GetACLByGroup(groupid);
GridView1.DataBind();
}

/// <summary>
/// ±£´æ
/// </summary>
protected void Save_Click(object sender, EventArgs e)
{
DataKey key = GridView1.DataKeys[item.RowIndex];

id = Convert.ToInt32(key.Values[0].ToString());
}
}


»¹ÊÇÌùÒ»ÏÂSubmit_Click ÀïµÄ´úÂë°É¡£´ÓÄ¿Ç°À´¿´£


Ïà¹ØÎÊ´ð£º

ÔÚasp.netÖÐ ÔõÑùÈ¡µÃFileUploadÎļþµÄÍêÕû·¾¶

ÈçÌ⣡
FileUpload1.PostedFile.FileName

ÎÒÕâÑùдÁË  µ«ÊÇ»¹ÊÇ»ñµÃµÄÊÇÒ»¸öÎļþµÄÃû³Æ£¬FileUpload1.FileName Õâ¸öÒ²ÊÇÒ»Ñù£¡

FileUpload1.PostedFile.FileName

IE ÎÊÌâ

¹¤¾ß-internetÑ¡Ïî-°²È«- ......

asp.netÔÚ·þÎñÆ÷ÎÞ·¨²¥·ÅflvÊÓƵ

±¾ÈËʹÓÃswfobject.jsÔÚ±¾»ú¿ÉÒÔÕý³£²¥·Å£¬µ«·¢²¼µ½win2003·þÎñÆ÷¾ÍÎÞ·¨²¥·Å£¬ÍøÉÏÕÒÁËÐí¶à¶¼ËµÐèÒªÅäÖÃMIMEÀàÐÍ£¬ÎÒÅäÖÃÁËҲûÓгɹ¦£¬Çë¸ßÊÖÖ¸µãÒ»ÏÂ
·þÎñÆ÷ÊÇ·ñÖ§³Ö£¬Â·¾¶ÊÇ·ñÕýÈ·


ÓеķþÎñÆ÷¿ÉÄܲ»Ö§³Ö ......

ASP.NET¹ÜÀí¹¤¾ß

Åöµ½Âé·³ÁË£¬ÔÚ°²È«->´´½¨Óû§Ê±ÀÏÊÇ˵£º¡°Óöµ½´íÎó¡£Çë·µ»ØÉÏÒ»Ò³²¢ÖØÊÔ¡£¡±°Ù¶ÈÀÏÊÇ˵·¾¶Öв»ÄÜÒª#ʲôµÄ£¬ÎÒµÄÍøվ·¾¶D:/my-docs/VisualStudio2005/WebSites/sdjs/17/2/Ó¦¸ÃûÎÊÌâ°¡£¿£¿
ÖØн¨Ò»¸öÍøÕ¾Ò²Õ ......

asp.net¼Ósqlsever

ÎÒ×öÁËÒ»¸öasp.netµÄÍøÒ³£¬Àï±ßÓõÄÊÇsqlseverÊý¾Ý¿â£¬ÎÒÏë°ÑËû¹Òµ½¾ÖÓòÍøÉÏ£¬Ôõô°ÑÊý¾Ý¿â°óÉÏÈ¥£¿Ð»Ð»

¸øÄãÒ»¸öÁ¬½Ó×Ö·û´®µÄд·¨ÍøÕ¾£¬×Ô¼ºÕÕ×ÅÑù×Ó¸Ä
www.connectionstrings.com

http://zhidao.baidu.co ......

asp.netÒþ²Ø²»ÁËCalendar¿Ø¼þ

Ò»¸öTextBox,Ò»¸öCalendar¿Ø¼þ,ÎÒÏëµ±TextBoxµÃµ½½¹µãʱCalendar¿Ø¼þ¾ÍÒþ²ØÆðÀ´,ÎÒÏÂÃæµÄ´úÂëÀÏÊÇÒþ²Ø²»ÁË?

C#:

this.tbInHospitalDateBegin.Attributes.Add("onfocus", "calVisible(& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ