-
2008-05-15 17:08:01 / ASP.NET与AJAX
private void Btn_get_Click(object sender, System.EventArgs e){//连接数据库SqlConnection conn=new SqlConnection();conn.C;SqlCommand cmd=new SqlCommand();cmd.Connection=conn;//根据TextBox中指定的文件名进行查找读取cmd.CommandText="select fileContent from word where fileName='"+name_TextBox.Text.ToString()+"'";FileStream fs;BinaryWriter bw;//设定允许读取
查看(166)
评论(0)
-
2008-05-05 17:08:32 / ASP.NET与AJAX
有这样一段代码:public void CreateSqlCommand(SqlConnection myConnection,string queryString, SqlParameter[] paramArray){SqlCommand command = new SqlCommand(queryString, myConnection);command.CommandText ="SELECT CustomerID, CompanyName FROM Customers "+ "WHERE Country = @Country AND City = @City";command.Parameters.Add(paramArray);for (int j=0; j
查看(290)
评论(5)
-
2007-11-24 16:42:15 / 电子图书与IT文档资料
求书:Designing Enterprise Applications with Visual Basic.NET
查看(179)
评论(0)