Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 MVC Uploading and Downloading Files


If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload f ......

asp.net mvcÖÐckeditor+ckfinderµÄÅäÖ÷½·¨

¿ªÔ´ÍøÒ³±à¼­Èí¼þFCKEditorÔÚ09Äê·¢²¼¸üе½3.0£¬²¢¸ÄÃûΪCKEditor¡£¸Ä½øºóµÄckeditor¸ü¼ÓÄ£¿é»°£¬ÅäÖøü¼ÓÁé»î£¬ºÍÒÔÇ°µÄfckeditorʹÓ÷½Ê½ÉÏÒ²ÓÐËù²»Í¬¡£ÔÚÎÒµÄmvcÏîÄ¿ÖÐÓÉÓÚÒªÓõ½ ckeditor£¬ÌØÒâÑо¿ÁËÏÂËüµÄʹÓ÷½·¨£¬Ð´ÏÂÀ´ºÍ´ó¼Ò·ÖÏí¡£
ÎÒÓõÄÊÇ×îа汾µÄ£ºckeditor_3.0.1  ÏÂÔصØÖ·£ºhttp://ckeditor.com/
......

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

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

CuteEditorÊÇÒ»¿î¹¦Äܷdz£Ç¿´óµÄAsp.net HTML±à¼­Æ÷

CuteEditorÊÇÒ»¿î¹¦Äܷdz£Ç¿´óµÄAsp.net HTML±à¼­Æ÷
 Ò»¡¢CuteEditorµÄÅäÖÃ
      1¡¢½«ÒÔÏÂÎļþ¿¼±´µ½ÄãÕ¾µã¸ùĿ¼ÏµÄbinÄÚ(ÕâЩÔÚCuteEditor6.0/bin϶¼¿ÉÒÔÕÒµ½£©
      CuteEditor.dll£¬
      CuteEditor.ImageEditor.dll£¨6. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ