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

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElement;
var objs = document.getElementsByTagName('INPUT');
for(var i=0; i< objs.length; i++)
{
if(objs[i].type.toLowerCase() == 'submit')
{
objs[i].disabled = true;
}
}
} //--> < /script>//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:asp.netpublic class PreventMultiClick : System.Web.UI.Page {
protected System.Web.UI.WebControls.Button Button1; protected System.Web.UI.WebControls.Button Button2;
protected System.Web.UI.WebControls.LinkButton LinkButton1; protected System.Web.UI.WebControls.Button Button3; private void Page_Load(object sender, System.EventArgs e)
{
this.GetPostBackEventReference(this.Button3);
//±£Ö¤ __doPostBack(eventTarget, eventArgument) ÕýÈ·×¢²á if(!IsPostBack)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("if (typeof(Page_ClientValidate) == 'function')
{
if (Page_ClientValidate() == false)
{
return false;
}
}"); //±£Ö¤ÑéÖ¤º¯ÊýµÄÖ´ÐÐ sb.Append("if(window.confirm('are you sure?')==false) return false; ");
//×Ô¶¨Òå¿Í»§¶Ë½Å±¾ sb.Append("disableOtherSubmit(); ");
// disableËùÓÐsubmit°´Å¥ sb.Append(this.GetPostBackEventReference(this.Button3));
//ÓÃ__doPostBackÀ´Ìá½»£¬±£Ö¤°´Å¥µÄ·þÎñÆ÷¶ËclickʼþÖ´ÐÐ sb.Append("; ");
Button3.Attributes.Add("onclick",sb.ToString());
}
} #region Web Form Designer generated code override protected void OnInit(EventArgs e)
{
// // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent();
base.OnInit(e);
}
/// < summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// < /summary> private void InitializeComponent()
{
this.Butto


Ïà¹ØÎĵµ£º

[Asp.Net]Êý¾Ý¿âÁ¬½Ó×Ö·û´®´óÈ«(ת)

SQL·þÎñÆ÷ ODBCÁ¬½Ó·½Ê½
±ê×¼°²È«Á¬½Ó
Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
ÐÅÈÎÁ¬½Ó
Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Trusted_Connection=Yes;
ÌáʾÊäÈëÓû§ÃûºÍÃÜÂ뷽ʽ
Õâ¸öÓÐÒ»µãÎÊÌ⣬Ê×ÏÈÄãÐèÒªÉèÖÃÒ»¸öPro ......

µ¼³öÊý¾Ýµ½excel Öб¨Ã»Óиøasp.net ÊÚȨ

½â¾ö·½·¨£º¡¡
ÔËÐÐ ¼üÈ룺dcomcnfg.exe  »Ø³µ
 ´ò¿ª  ×齨·þÎñ->¼ÆËã»ú-> ÎҵĵçÄÔ->DCOM ÅäÖà -> Microsoft Excel Ó¦ÓóÌÐò ÊôÐÔ 1.±êʶ¸ÄΪ½»»¥Ê½Óû§
2. ÔÚ°²È«Ï Æô¶¯ºÍ¼¤»îȨÏÞ¡¢·ÃÎÊȨÏÞ¡¢ÅäÖÃȨÏÞ  ¼¸¸öÖÐÑ¡ÖÐ×Ô¶¨Òå ±à¼­ Ìí¼Ó ¸ß¼¶ Á¢¼´²éÕÒ Ñ¡ÖÐÏÂÁпòÖÐµÄ ASPNET µã»÷È·¶¨
......

Asp.net ÖÐGridView¸÷ÖÖÓ÷¨

1.GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò£º
Ч¹ûͼ£º
1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£»
2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£
3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£
2.GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ ......

ASP.NETÅúÁ¿ÉÏ´«excelÊý¾Ýµ½Êý¾Ý¿âMySql

aspxÒ³Ãæ
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customin.aspx.cs" Inherits="kf_customin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ......

Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾Ý

     ÔÚ×öÏîÄ¿µÄʱºòÓöµ½ÕâÑùµÄÎÊÌ⣬ÍøÉÏÕÒÁËÏ£¬¾õµÃ»¹¿ÉÒÔ£¬·ÖÏí¸ø´ó¼Ò
1Â¥
Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾ÝС¼Ç
×î½üÔÚÓÃAsp.Net±àдµã¶«Î÷ʱÓöµ½¸öÎÊÌ⣺¼´Óû§ÔÚÌá½»±íµ¥ºó°´Ë¢Ð¾ͻáÖظ´Ìá½»Êý¾Ý£¬¼´ËùνµÄ“Ë¢ÐÂÖظ´Ìá½»”µÄÎÊÌâ¡£ÔÚÍøÉÏËѠһϣ¬¿ÉÒÔÕÒµ½ºÜ¶à¹ØÓÚÕâ·½ÃæµÄ×ÊÁÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ