免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
asp.net編程中6條實用語句
1.Panel 橫向滾動,縱向自動擴展 
<asp:panel style="overflow-x:scroll;overflow-y:auto;"></asp:panel> 
2.回車轉(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)  //當在有keydown事件的控件上敲回車時,變?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超級連接列 
DataNavigateUrlField="字段名" DataNavigateUrlFormatString="http://xx/inc/delete.aspx?ID={0}" 
4.自定義異常處理 
//自定義異常處理類 
using System; 
using System.Diagnostics; 
namespace MyAppException 

  /// <summary> 
  /// 從系統(tǒng)異常類ApplicationException繼承的應用程序異常處理類。 
  /// 自動將異常內(nèi)容記錄到Windows NT/2000的應用程序日志 
  /// </summary> 
  public class AppException:System.ApplicationException 
  { 
  public AppException() 
  { 
  if (ApplicationConfiguration.EventLogEnabled)LogEvent("出現(xiàn)一個未知錯誤。"); 
  } 
  public AppException(string message) 
  { 
  LogEvent(message); 
  } 
  public AppException(string message,Exception innerException) 
  { 
  LogEvent(message); 
  if (innerException != null) 
  { 
  LogEvent(innerException.Message); 
  } 
  } 
  //日志記錄類 
  using System; 
  using System.Configuration; 
  using System.Diagnostics; 
  using System.IO; 
  using System.Text; 
  using System.Threading; 
  namespace MyEventLog 
  { 
  /// <summary> 
  /// 事件日志記錄類,提供事件日志記錄支持 
  /// <remarks> 
  /// 定義了4個日志記錄方法 (error, warning, info, trace) 
  /// </remarks> 
  /// </summary> 
  public class ApplicationLog 
  { 
  /// <summary> 
  /// 將錯誤信息記錄到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); 
  }
本文來自: 網(wǎng)頁設計大本營(www.code-123.com) 詳細出處參考:http://www.code-123.com/html/20081227123313580.html
本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
馬未都:人生最好的狀態(tài)是什么呢?聽完讓我受益匪淺!
在網(wǎng)吧如何免費上網(wǎng)
漢中沒什么好的
對手套很有信心
漢莎航空波音747-8宣傳片
不用定義名稱,解決if7層嵌套限制
更多類似文章 >>
生活服務
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服