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

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 + "');");
}
Ë«»÷±í¸ñÁ¬½Óµ½ÁíÒ»Ò³
ÔÚitemDataBindʼþÖÐ
if(e.Item.ItemType == ListItemType.Item e.Item.ItemType == ListItemType.AlternatingItem)
{
¡¡string orderItemID =e.item.cells[1].Text;
¡¡...
¡¡e.item.Attributes.Add("ondblclick", "location.href='../ShippedGrid.aspx?id=" + orderItemID + "'");
}
Ë«»÷±í¸ñ´ò¿ªÐÂÒ»Ò³
if(e.Item.ItemType == ListItemType.Item e.Item.ItemType == ListItemType.AlternatingItem)
{
¡¡string orderItemID =e.item.cells[1].Text;
¡¡...
¡¡e.item.Attributes.Add("ondblclick", "open('../Shipped


Ïà¹ØÎĵµ£º

ASP.NET »º´æ£º·½·¨ºÍ×î¼Ñʵ¼ù

ASP.NET »º´æ£º·½·¨ºÍ×î¼Ñʵ¼ù
2009-11-28 16:49
ÕªÒª£ºASP.NET ÌṩÈýÖÖÖ÷ÒªÐÎʽµÄ»º´æ£ºÒ³Ã漶Êä³ö»º´æ¡¢Óû§¿Ø¼þ¼¶Êä³ö»º´æ£¨»ò³ÆΪƬ¶Î»º´æ£©ºÍ»º´æ API¡£Êä³ö»º´æºÍƬ¶Î»º´æµÄÓŵãÊǷdz£Ò×ÓÚʵÏÖ£¬ÔÚ´ó¶àÊýÇé¿öÏ£¬Ê¹ÓÃÕâÁ½ÖÖ»º´æ¾Í×ã¹»ÁË¡£¶ø»º´æ API ÔòÌṩÁ˶îÍâµÄÁé»îÐÔ£¨Êµ¼ÊÉÏÊÇÏ൱´óµÄÁé»îÐÔ£©£¬¿ÉÓÃÓÚÔÚÓ¦Ó ......

Àí½âASP.NET MVCÖеÄActionResult

ͨ³£ÎÒÃÇÔÚÒ»¸ö
ASP.NET MVCÏîÄ¿Öд´½¨Ò»¸ö
ControllerµÄʱºò£¬
Index()·½·¨Ä¬Èϵķµ»ØÀàÐͶ¼ÊÇ
ActionResult£¬Í¨¹ý²é¿´
UMLͼ£¬
ActionResultʵ¼ÊÉÏÊÇÒ»¸ö³éÏóÀ࣬Òò´Ëʵ¼Ê·µ»ØµÄÀàÐÍÊǸóéÏóÀàµÄ×ÓÀà¡£
Ø
ActionResult
¼°Æä×ÓÀàµÄ
UML
ͼ
 
ÓйØ
ActionResult¼°Æä×ÓÀàµÄ
UMLͼÈçÏÂËùʾ£º
&n ......

ÔÚAsp.net ÖÐǶÈë.swfÏê½â

Ó¦¸ÃÊÇ£ºÔÚÏîʱÏ£¬µã»÷swf×ÊÁÏÓʼþ-£¬ÊôÐÔÀïÍ·ÓУºBuildActionÑ¡ÏȡÉáǶÈë
http://www.lan27.com/Article/200706/1771.htm
ÒªÔÚÄãµÄÒýÊö³ÌÐòÖÐǶÈë×ÊÁÏ£¬Ö»ÐèÒª°´Ï²¿µÄ·½·¨²Ù×÷¼´¿É£º
Ò»£¬ÔÚ×ÊÔ´¹ÜÀíÆ÷ÀïÑ¡ººÓïÑÔ¼þ
¶þ£¬°´×¡Êó±ê×ó¼ü£¬Íϵ½¹¤³Ì×ÊÁÏÉÏ£¬ËÉ¿ªÊó±ê×ó¼ü¡£
Èý£¬ÔÚÍϷŵÄ×ÊÁÏÉϵãÊó±êÓÒ¼ü£¬Ñ¡“Ê ......

¹ØÓÚasp.net ideÖÐÎÞ·¨´´½¨¿Ø¼þµÄÎÊÌâ

Õ⼸ÌìÅöµ½¸öºÜÆæ¹ÖµÄÎÊÌ⣬ƽ³£ÔÚÏîÄ¿Öдӹ¤¾ßÏäÖУ¬°Ñ¿Ø¼þÍϵ½±à¼­Çø£¬ÄÇÊÇÔÙ¼òµ¥ÈÝÒײ»¹ýÁË¡£
¿ÉÊǼ¸ÌìÇ°Åöµ½¾ÍÊÇ£¬ÎÞÂÛÄãÔõôÍÏ£¬¶¼ÎÞ·¨Íϵ½±à¼­ÇøÖУ¬Çл»µ½Ô´Â룬ÔÙÍϵÄʱºòÊÇ¿ÉÒԵģ¬²úÉúÁËHTML´úÂë
£¬ÔÙ½«ËüתÊÓͼµÄʱºò£¬·¢ÏÖÎÞ ·¨Õý³£ÏÔʾ¿Ø¼þ£¬£¬ËµÊÇÎÞ·¨ÕÒµ½¸ÃÒ³Ãæ¡£¡£¡£¡£¡£
н¨Á˼¸´ÎÒ²ÊDz»ÐУ¬ÒÔΪÊÇVS³ ......

ASP.NET UpdatePanel ¿Ø¼þ¸ÅÊö


ʹÓà ASP.NET UpdatePanel ¿Ø¼þ¿ÉÉú³É¹¦ÄܷḻµÄ¡¢ÒÔ¿Í»§¶ËΪÖÐÐÄµÄ Web Ó¦ÓóÌÐò¡£Í¨¹ýʹÓà UpdatePanel ¿Ø¼þ£¬¿ÉÒÔË¢ÐÂÒ³µÄÑ¡¶¨²¿·Ö£¬¶ø²»ÊÇʹÓûط¢Ë¢ÐÂÕû¸öÒ³Ãæ¡£Õâ³ÆΪִÐГ²¿·ÖÒ³¸üД¡£°üº¬Ò»¸ö ScriptManager ¿Ø¼þºÍÒ»¸ö»ò¶à¸ö UpdatePanel ¿Ø¼þµÄ ASP.NET ÍøÒ³¿É×Ô¶¯²ÎÓ벿·ÖÒ³¸üУ¬¶ø²»ÐèÒª×Ô¶¨Òå ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ