Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ǶÌ×Ò»¸öaspÒ³Ãæºó³öÏÖµÄÎÊÌâ

ÎÒÔÚÒ»¸öASPXÒ³ÃæÖÐÓà <!-- #include file="top.asp"-->ǶÌ×ÁËÒ»¸öaspÒ³Ãæ£¬µ«ÔÚµã»÷°´Å¥Ìá½»±íµ¥µÄʱºòûÓÐÈκη´Ó¦£¬ÊDz»ÊÇÁ½¸öFORMµÄÔ­ÒòÔì³ÉµÄ£¬top.aspÀïÃæÒ²ÓÐÒ»¸öform£¬°ÑǶÌ×È¥µôµÄ»°£¬ÔËÐÐ ......

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

ÈçÌ⣡
FileUpload1.PostedFile.FileName

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

FileUpload1.PostedFile.FileName

IE ÎÊÌâ

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

ASP.NET¿ª·¢WEBGIS

±¾È˳õ´Î½Ó´¥GIS£¬ÏëÔÚ×Ô¼ºÓÃasp.net½¨µÄÍøÕ¾ÄÚ£¬Ç¶ÈëGIS¼¼Êõ£¬×öÒ»¸öµØÍ¼£¬ÄÜÔÚµØÍ¼É϶¯Ì¬Éú³É·Ïߣ¬ÓÉÓÚ³õ´Î½Ó´¥GIS£¬ÊµÔÚÊDz»Öª´ÓºÎÏÂÊÖ£¬¿ª·¢WEBGISÓÃЩʲôÑùµÄÈí¼þ¹¤¾ß£¬ÓÖÈçºÎ½«×ö³ÉµÄµØÍ¼ÔÚvs2008ÀïʹÓã¬Õâ ......

asp.netÔõÑùÈÃÎÄÕ·ÖÒ³

¸÷λ¸ßÊÖ£ºÐ»Ð»ÁË£¬ºÜ¼±²»ÖªÔõÑù½â¾ö
¿ÉÒÔÀûÓÃJS+XML
ÔÚºǫ́·¢²¼µÄʱºò£¬²åÈëÒ»¸ö·ÖÒ³·û
ÏÔʾµÄʱºò¸ù¾ÝÕâ¸ö·ÖÒ³·û½øÐзÖÒ³¡£

²åÈëÒ»¸ö·ÖÒ³·û Õâ¸ö·½·¨ºÜºÃ

ʹÓ÷ÖÒ³¿Ø¼þ¡£

лл¸÷λÁËÒѾ­½â¾öÁË£ºh ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ