Time of Update: 2018-12-05
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace SureKAM.SPM.Portal.WebSite{ public partial class AccessDenied : System.Web.UI.Page { private
Time of Update: 2018-12-05
Net與C#•Net(DotNet):–一般指.Net Framework、一種平台、一種技術•C#(sharp):–一種程式設計語言,可以開發基於.Net平台的應用•Java:–既是一種技術也是一種語言.Net都能做什麼傳統型應用程式 WinFormInternet應用程式 ASP.Net手機開發
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace 計算員工考勤資訊{ public partial class Form1
Time of Update: 2018-12-05
DataSet ds = new DataSet("tb"); DataTable dt = new DataTable(); ds.Tables.Add(dt); DataColumn dc = new DataColumn(); dc.ColumnName = "id"; dc.DataType = typeof(int);
Time of Update: 2018-12-05
在js前台頁面直接調用.NET控制項的ID屬性很容易出問題,為什麼這麼說呢,我們知道一個.NET控制項,它有ID,UniqueID(伺服器ID,唯讀),ClientID(用戶端ID,唯讀)三種唯一標記方式。我甚至發現一些有過開發經驗的人都會犯這樣的錯誤,他直接在js中調用.NET伺服器控制項的ID,如:<%= TextBox1%>
Time of Update: 2018-12-05
1、可變參數在C#4.0中增加了許多新的特性,這裡我主要說一下——可變參數數組:int sum(params int[] values) ;int sum(string name,params int[] values)注意:可變參數數組必須是最後一個,而且可變參數是C4.0中才有的特性。參數預設值(C#4.0) :void SayHello(string name,int age=20)(*瞭解) 注意:參數預設值的設定也必須是在非預設值參數的後面。static void
Time of Update: 2018-12-05
字串的處理•C#中單個字元用單引號包含就是char類型,(‘a’),單引號中放且只能放一個字元。ASCII碼•單個字元也可以表示為字串,還可以有長度為0的字串。null和""的區別,String.IsNullOrEmpty•使用s.Length屬性來獲得字串中的字元個數•string可以看做是char的唯讀數組。char c =
Time of Update: 2018-12-05
/// <summary> /// 為指定組添加指定許可權 /// </summary> /// <param name="PermissionsName">許可權名稱</param> /// <param name="GroupName">組名稱</param> /// <param
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;using System.Windows.Forms;namespace SZTMinorTool{ /// <summary> /// App.config配置類 /// </summary> public class AppSettings {
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.Configuration;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;namespace LcSoftCard.Service{ public class UDPConsumeServiceDS { private bool
Time of Update: 2018-12-05
一、 window服務是什麼 當你單擊“開始”,執行“services.msc”命令。就會看見如下視窗。它顯示的是當前作業系統中系統內建的服務或者第三方軟體安裝的服務。服務的狀態有名稱、描述、啟動狀態、啟動類型等等。你也可以在此表單中管理相關服務,注意謹慎操作,防止系統錯誤或軟體故障。二、建立一個Windows Service1)建立Windows Service項目2)對Service重新命名將Service1重新命名為你服務名稱,這裡我們命名為ServiceTest。二、建立服務安裝程式1)
Time of Update: 2018-12-05
C#WinForm中按鈕響應斷行符號事件的簡單方法Winform中的按鈕要響應斷行符號事件,是很簡單的事情!只要在表單中的屬性設定一下就可以了!比如有登入表單(Form_Login),包含有兩個按鈕登入 (btnLogin)和退出(btnExit),想要登入 (btnLogin)響應斷行符號鍵,則設定表單(Form_Login)的屬性AcceptButton為btnLogin即可!即Form_Login.AcceptButton=btnLogin;
Time of Update: 2018-12-05
c# winform 程式打包部署1 建立一個 c# 安裝部署項目2 在檔案系統編輯器裡把做好的項目的可執行檔及要用到的其它檔案(相關dll及資源檔)添加進來(應用程式檔案夾)3 如果要在程式菜單中加捷徑,可以在應用程式檔案夾裡把項目的可執行檔 產生一個捷徑,再剪下到 使用者的程式菜單 欄裡同時可以把名稱改成你要的名稱4 如果要加進卸載功能 vs 2003 下 ,在應用程式檔案夾裡添加檔案的時候同時把 C:\WINDOWS\system32\msiexec.exe 這個檔案加進來,
Time of Update: 2018-12-05
指標概述 所有的變數都會在記憶體空間分配一塊記憶體,指標是用來表示這塊記憶體空間的地址的,可以用取地址符&來擷取一個變數在記憶體空間的地址,如果想存放一個地址,就可以用一個指標變數來存放,存放記憶體位址的變數就是指標變數 指標是用來表示一塊記憶體位址的,指標變數是用來存放記憶體位址的 #include <stdio.h>#include <stdlib.h>main(){ int i = 10; int* p
Time of Update: 2018-12-05
結構體 #include <stdio.h>#include <stdlib.h>struct Student{ long id;//4 float score;//4 int age;//4 char sex;//1}stud;main(){ //struct Student st = {83265209,99.009f,80,'F'}; //printf("id=%ld\n",st.id);
Time of Update: 2018-12-05
obj-c屬性:替代setter和getter方法源副檔名介紹引進庫檔案 #import<標頭檔.h>只引入一次 #include引入的話可能會有多次引入的問題NSAutoreleasePool 延遲釋放 ios開發一般要求自己手動釋放記憶體基礎資料型別 (Elementary Data Type)、物件類型、id類型 基礎資料型別 (Elementary Data
Time of Update: 2018-12-05
Obj-c為每個對象提供一個內部計數器,負責跟蹤對象的引用次數,引用次數的增減分別對應NSObject的retain和release方法,當引用次數為0時,對象將會得到馬上回收。對象的建立 alloc和copy系列方法,都會發送一條retain訊息,引用計數都會加1, "是誰生的孩子,就應該誰來養"重寫dealloc方法 當對象包含其他對象時,就得在dealloc方法中釋放他們 -(void) dealloc{ [myvar release];
Time of Update: 2018-12-05
類的定義: //類變數 static int count;@interface Myobject:NSObject{ //主要進行成員變數的定義 NSString *param; } //主要進行成員方法的定義(不會有方法的實現) -(void) run:(long) time name:(NSString*) name;
Time of Update: 2018-12-05
主要通過一些方法、函數來介紹下Java和C之間通訊Java通過JNI調用C函數執行個體代碼char* Jstring2CStr(JNIEnv* env, jstring jstr){ char* rtn = NULL; //c調用java中的類的方法 jclass clsstring = (*env)->FindClass(env,"java/lang/String"); jstring strencode =