skip to main
|
skip to sidebar
Info-related
Tuesday, March 28, 2006
datagrid中ItemTemplate的使用
<
asp:Label runat="server
"><%# formatString(Container.DataItem("RowType")) %>
asp:Label
>
橘色可省略...
Monday, March 27, 2006
datagrid修改的問題
private void DataGrid1_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) {
string strSQL = "Delete From "+this.tb_name+" Where ID="+e.Item.Cells[0].Text+"";
this.dbp.dbconn.Open();
OleDbCommand objCmd = new OleDbCommand(strSQL, this.dbp.dbconn);
objCmd.ExecuteNonQuery();
objCmd.Connection.Close();
this.dbp.dbconn.Open();
OleDbDataAdapter objCmd2 = new OleDbDataAdapter(this.sql,this.dbp.dbconn);
DataSet ds = new DataSet();
objCmd2.Fill(ds,"fqa");
DataGrid1.DataSource = ds.Tables["fqa"].DefaultView;
DataGrid1.DataBind();
}
加了下面這兩行就會reflesh網頁了,不然似乎刪除完網頁沒有反應。
datagrid update的問題
private void Page_Load(object sender, System.EventArgs e) {
// 在這裡放置使用者程式碼以初始化網頁
//檢查session
Auth_check ac = new Auth_check();
string alert_str = ac.check_login(Session);
Response.Write(alert_str);
this.dbp = new DBprocess(Server.MapPath("../ag.mdb"));
this.dbp.dbconn.Open();
this.sql = "Select * From "+ this.tb_name;
if(!IsPostBack) {
DataGrid1.DataSource = dbp.GetDataTable(this.sql,dbp.dbconn,tb_name);
DataGrid1.DataBind();
}
this.dbp.dbconn.Close();
}
Wednesday, December 28, 2005
eclipse3.0.1+lomboz3.0.1
將eclipse解壓到C:\eclipse3.0.1
安裝Lomboz(org.objectweb.lomboz_3.0.1.N20050106.zip)
http://forge.objectweb.org/project/download.php?group_id=97&file_id=2302
將plugings與features分別置放在eclipse下的對映目錄。
emf-sdo-runtime-2.0.0.zip如上所示。
Friday, December 16, 2005
這裡是java區
跟java相關的資料~~唉,希望早點跳離程式藍領!!><
Newer Posts
Home
Subscribe to:
Posts (Atom)
About Me
Weiminko
View my complete profile
Labels
Job procedure
Mobile 5.0
工讀生進度、PHA專案
CVS
Deployment
Java
Mobile Architecture
NETCF
Performance
UML
W$
工作
論文
Blog Archive
▼
2007
(6)
▼
April
(5)
SVN建立CVS版本控制機制
2006 IEEE/WIC/ACM International Conference on Web ...
4/18欽誠進度
4/17至浩、家禎進度
4月中以後的工作
►
March
(1)
►
2006
(10)
►
November
(4)
►
October
(1)
►
June
(1)
►
April
(1)
►
March
(3)
►
2005
(2)
►
December
(2)