摘要:
Private Sub Command1_Click()'从IP库导出IP.xls 'On Error GoTo myErr Dim FilePath As String, tmp As Byte Dim excel_app As Object Dim row As Integer '建立 Excel 应用程序 Set excel_app = CreateObject("Excel.Application") '显示Excel应用程序 excel_app.Visible = True '添加新工作簿: excel_app.WorkBo 阅读全文
摘要:
今天在看设计模式的单例模式时,无意中发现了C#的延迟加载实现方式。我就把我见到的现象和大家分享下,有错误欢迎拍砖。public sealed class b { internal static int a = 0;static b() { a = 4; } } public sealed class Singleton { internal static int i = 0; Singleton() { } public static Singleton Instance { get { return Nested.instance; } } class Nested { static Nes 阅读全文
摘要:
在使用UpdatePanel的时候,如果要用到Response.Write()方法,则会出错,错误信息内容大概如下: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error ... 阅读全文