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.io;
using system.data.sqlclient;
namespace _8_手機歸屬地查詢案例
private void button1_click(object sender, eventargs e)
//取得路徑
string path = folderbrowserdialog1.selectedpath;
//讀取該目錄下面的所有.txt檔案,返回的是字串陣列
string files = directory.getfiles(path, "*.txt", searchoption.alldirectories);
using (sqlconnection conn = new sqlconnection(@"data source=.\sqlexpress;attachdbfilename=e:\myprojects\c#net傳智播客\第五季ado.net\8登陸練習操作\8_手機歸屬地查詢案例\database1.mdf;integrated security=true;user instance=true"))}}
}}
messagebox.show("匯入成功!");
}private void button2_click(object sender, eventargs e)
else
messagebox.show("暫無該手機歸屬地資訊!");
return;}}
}}}}
}
第五節 8 手機歸屬地查詢案例
using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.linq using system.text u...
第五節 8注入漏洞與引數化查詢
using system using system.collections.generic using system.linq using system.text using system.data.sqlclient sql注入漏洞攻周 登陸判斷 select from t users where...
第五節 8注入漏洞與引數化查詢
using system using system.collections.generic using system.linq using system.text using system.data.sqlclient sql注入漏洞攻周 登陸判斷 select from t users where...