測試可以用
暫記一下
IniFile ini = new IniFile(Application.StartupPath + "\\TestFile.ini");
textBox1.Text = ini.IniReadValue("Section1", "key1"); //讀檔
ini.IniWriteValue("123", "1234", "12345"); //存入
An INI file handling class using C#
程式筆記本 把所使用過的程式與電腦問題記錄下來 我想把這裡串成一本活字典
IniFile ini = new IniFile(Application.StartupPath + "\\TestFile.ini");
textBox1.Text = ini.IniReadValue("Section1", "key1"); //讀檔
ini.IniWriteValue("123", "1234", "12345"); //存入
ListItem delList = new ListItem("離職人員", "員工編號");
DropDownList1.Items.Add(delList);
DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("員工編號"));
DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("2"));
use [資料庫名稱]
exec sp_helpuser
use [資料庫名稱]
exec sp_helprolemember 'db_owner'
use [資料庫名稱]
select * from sys.sql_logins
use master
EXEC sp_helpuser
use master
exec sp_helprolemember 'db_owner'
use master
select * from sys.sql_logins
protected void LinqDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
var cities = from city in citiesArray
where city.CompareTo("B") > 0
select city;
e.Result = cities;
// Or we could set e.Result = citiesArray to return all rows.
}