乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      asp.net編程中6條實(shí)用語(yǔ)句

       悟靜 2010-07-03
      1.Panel 橫向滾動(dòng),縱向自動(dòng)擴(kuò)展 
      <asp:panel style="overflow-x:scroll;overflow-y:auto;"></asp:panel> 
      2.回車(chē)轉(zhuǎn)換成Tab 
      (1) 
      <script language="javascript" for="document" event="onkeydown"> 
        if(event.keyCode==13 && event.srcElement.type!=’button’ && event.srcElement.type!=’submit’ &&     event.srcElement.type!=’reset’ && event.srcElement.type!=’’&& event.srcElement.type!=’textarea’); 
        event.keyCode=9; 
      </script> 
      (2)  //當(dāng)在有keydown事件的控件上敲回車(chē)時(shí),變?yōu)閠ab 
      public void Tab(System.Web .UI.WebControls .WebControl webcontrol) 

      webcontrol.Attributes .Add ("onkeydown", "if(event.keyCode==13) event.keyCode=9"); 
      3.DataGrid超級(jí)連接列 
      DataNavigateUrlField="字段名" DataNavigateUrlFormatString="http://xx/inc/delete.aspx?ID={0}" 
      4.自定義異常處理 
      //自定義異常處理類(lèi) 
      using System; 
      using System.Diagnostics; 
      namespace MyAppException 

        /// <summary> 
        /// 從系統(tǒng)異常類(lèi)ApplicationException繼承的應(yīng)用程序異常處理類(lèi)。 
        /// 自動(dòng)將異常內(nèi)容記錄到Windows NT/2000的應(yīng)用程序日志 
        /// </summary> 
        public class AppException:System.ApplicationException 
        { 
        public AppException() 
        { 
        if (ApplicationConfiguration.EventLogEnabled)LogEvent("出現(xiàn)一個(gè)未知錯(cuò)誤。"); 
        } 
        public AppException(string message) 
        { 
        LogEvent(message); 
        } 
        public AppException(string message,Exception innerException) 
        { 
        LogEvent(message); 
        if (innerException != null) 
        { 
        LogEvent(innerException.Message); 
        } 
        } 
        //日志記錄類(lèi) 
        using System; 
        using System.Configuration; 
        using System.Diagnostics; 
        using System.IO; 
        using System.Text; 
        using System.Threading; 
        namespace MyEventLog 
        { 
        /// <summary> 
        /// 事件日志記錄類(lèi),提供事件日志記錄支持 
        /// <remarks> 
        /// 定義了4個(gè)日志記錄方法 (error, warning, info, trace) 
        /// </remarks> 
        /// </summary> 
        public class ApplicationLog 
        { 
        /// <summary> 
        /// 將錯(cuò)誤信息記錄到Win2000/NT事件日志中 
        /// <param name="message">需要記錄的文本信息</param> 
        /// </summary> 
        public static void WriteError(String message) 
        { 
        WriteLog(TraceLevel.Error, message); 
        } 
        /// <summary> 
        /// 將警告信息記錄到Win2000/NT事件日志中 
        /// <param name="message">需要記錄的文本信息</param> 
        /// </summary> 
        public static void WriteWarning(String message) 
        { 
        WriteLog(TraceLevel.Warning, message);   
        } 
        /// <summary> 
        /// 將提示信息記錄到Win2000/NT事件日志中 
        /// <param name="message">需要記錄的文本信息</param> 
        /// </summary> 
        public static void WriteInfo(String message) 
        { 
        WriteLog(TraceLevel.Info, message); 
        }
      本文來(lái)自: 網(wǎng)頁(yè)設(shè)計(jì)大本營(yíng)(www.) 詳細(xì)出處參考:http://www./html/20081227123313580.html

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶(hù) 評(píng)論公約

        類(lèi)似文章 更多