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

ASP.net³õѧÕßѧϰ¹ý³ÌÖÐÕûÀíµÄ±¸Íü¼

һλASP.net³õѧÕßѧϰ¹ý³ÌÖÐÕûÀíµÄ±¸Íü¼£¬°üÀ¨“´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£¬Îª°´Å¥Ìí¼Ó¶Ô»°¿ò£¬É¾³ý±í¸ñÑ¡¶¨¼Ç¼£¬É¾³ý±í¸ñ¼Ç¼¾¯¸æ”µÈµÈ³£¼ûÎÊÌâµÄ½â¾ö·½·¨(ÍøÉÏ¿´µ½Í¦ºÃµÄ,¹²ÏíÒ»ÏÂ)¡£
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("<script>window.open
('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a  = Request.QueryString("id");
string b  = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("onclick","return confirm('È·ÈÏ?')");
button.attributes.add("onclick","if(confirm('are you sure...?'))
{return true;}else{return false;}")
3.ɾ³ý±í¸ñÑ¡¶¨¼Ç¼
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex];
string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString()
4.ɾ³ý±í¸ñ¼Ç¼¾¯¸æ
private void DataGrid_ItemCreated(Object sender,DataGridItemEventArgs e)
{
 switch(e.Item.ItemType)
 {
  case ListItemType.Item :
  case ListItemType.AlternatingItem :
  case ListItemType.EditItem:
    TableCell myTableCell;
    myTableCell = e.Item.Cells[14];
    LinkButton myDeleteButton ;
    myDeleteButton = (LinkButton)myTableCell.Controls[0];
    myDeleteButton.Attributes.Add
("onclick","return confirm('ÄúÊÇ·ñÈ·¶¨ÒªÉ¾³ýÕâÌõÐÅÏ¢');");
    break;
  default:
   break;
 }
}
5.µã»÷±í¸ñÐÐÁ´½ÓÁíÒ»Ò³
private void grdCustomer_ItemDataBound
(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
//µã»÷±í¸ñ´ò¿ª
if (e.Item.ItemType == ListItemType.Item ||
e.Item.ItemType == ListItemType.AlternatingItem)
 e.Item.Attributes.Add("onclick","window.open
('Default.aspx?id=" + e.Item.Cells[0].Text + "');");
}
¡¡¡¡Ë«»÷±í¸ñÁ¬½Óµ½ÁíÒ»Ò³£¬ÔÚit


Ïà¹ØÎĵµ£º

asp.net¶¨Ê±·¢ËÍÓʼþ×ܽá (ת)

Ïã¸ÛÄDZ߹«Ë¾µÄÊг¡²¿¿ª»áʱҪÇóÎÒÃÇÕâ±ßʵÏÖÒ»¸ö¶¨Ê±·¢ËÍÓʼþµÄ¹¦ÄÜ£¬¼´ÔÚÿÌìÏÂÎç5µã×óÓÒ¶¨Ê±°Ñ½ñÌìÒÑͨ¹ýÈýÉóµÄ¶©µ¥ÐÅÏ¢·¢¸øÊг¡²¿µÄ¾­Àí£¬¸æËßËûÄÄЩ¶©µ¥ÒѾ­Í¨¹ýÁËÖÕÉó¡£Æ½Ê±Ö»ÖªµÀÈçºÎÓÃ.net·¢ËÍÓʼþ£¬µ«²»ÖªÈçºÎ¶¨Ê±·¢ËÍÓʼþ¡£ÓÚÊÇ°Ù¶ÈÁËһϣ¬×ܽáÆðÀ´ÓÐÒÔÏÂÄÇôÈýÖÖ£º
£¨1£©×öÒ»¸öwinform À´¶¨Ê±·¢Óʼþ¡£È»ºóͨ¹ý ......

asp.net ±¸·Ý»¹Ô­Êý¾Ý¿â


1£º¿Í»§¶Ë
<table border="0" style="width: 60%">
¡¡¡¡<tr><td colspan="2" style="height: 5px">
      Êý¾Ý¿â»¹Ô­ºÍ±¸·Ý:</td></tr>
¡¡¡¡<tr><td style="width: 171px; height: 23px;">
      ÇëÑ¡ÔñÊý¾Ý¿â:</t ......

ASP.NET 2.0ÖÐOWCÉú³ÉÖù״ͼºÍ±ý״ͼ

1¡¢Ê×ÏÈÏÂÔØowc11£ºowc11(http://www.svnhost.cn/Download/Detail-60.shtml)
2¡¢ÒýÓÃOWC£º´ò¿ª"½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷"Ãæ°å£¬Êó±êÓÒ¼üµ¥»÷"ÒýÓÃ"£¬Ñ¡Ôñ"Ìí¼ÓÒýÓÃ"²Ëµ¥£¬ÔÚµ¯³öµÄ"Ìí¼ÓÒýÓÃ"¶Ô»°¿òÖе¥»÷"COM"¿¨Æ¬£¬ÕÒµ½"Microsoft Office Web Components 10.0(office 2003ÊÇ11.0)"£¬µ¥»÷"Ñ¡Ôñ"ºÍ"È·¶¨"°´Å¥£¬OWC¾Í±»Ìí¼Óµ½ÁËÒý ......

Asp.netÖÐDataBinder.EvalÓ÷¨µÄ×ܽá

eval()·½·¨ÔÚÔËÐÐʱʹÓ÷´ÉäÖ´ÐкóÆڰ󶨼ÆË㣬Òò´ËÓë±ê×¼µÄASP.NETÊý¾Ý°ó¶¨·½·¨bindÏà±È£¬»áµ¼ÖÂÐÔÄÜÃ÷ÏÔϽµ¡£ËüÒ»°ãÓÃÔÚ°ó¶¨Ê±ÐèÒª¸ñʽ»¯×Ö·û´®µÄÇé¿öÏ¡£¶àÊýÇé¿ö¾¡Á¿ÉÙÓô˷½·¨
Eval ·½·¨ÊǾ²Ì¬£¨Ö»¶Á£©·½·¨£¬¸Ã·½·¨²ÉÓÃÊý¾Ý×ֶεÄÖµ×÷Ϊ²ÎÊý²¢½«Æä×÷Ϊ×Ö·û´®·µ»Ø¡£Bind ·½·¨Ö§³Ö¶Á/д¹¦ÄÜ£¬¿ÉÒÔ¼ìË÷Êý¾Ý°ó¶¨¿Ø¼þµÄÖ ......

asp.netÏÂÐÞ¸ÄÎļþϵͳ´øÀ´µÄ¸±×÷Óü°Æä½â¾ö·½·¨

    ½ñÌìµÄÈÎÎñÊÇÄܹ»ÔÚasp.netϽ¨Á¢Îļþϵͳ£¬Ò²¾ÍÊÇÄܹ»ÔÚasp.netµÄÐéÄâĿ¼Ï½¨Á¢Îļþ¼Ð¡¢Îļþ¡¢ÐÞ¸ÄÎļþ¼Ð¡¢Îļþ¡¢É¾³ýÎļþ¼Ð¡¢ÎļþµÈ¡£½¨Á¢Îļþ¼Ð¡¢ÎļþºÜ˳Àû£¬Ã»ÓÐÓöµ½ÈκÎÎÊÌ⣬ֱ½ÓÓÃDirectory¾²Ì¬Àà¾Í¿ÉÒÔ×öÁË¡£
    µ«ÊÇ£¬ÔÚɾ³ý¡¢ÐÞ¸ÄÎļþ¼Ð¼°ÎļþµÄʱºòÓöµ½ÁËÆæ¹ÖµÄÎÊÌ⣺ÿ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ