您的位置:首页 > 数据库

用DataGrid显示数据库数据---我的第一个.net程序

2005-04-02 04:56 337 查看
从asp转到.net了   这个是写的第一个程序  留作纪念

string ConnStr = System.Configuration.ConfigurationSettings.AppSettings["ConnectionSqlServer"]; 

            SqlConnection hubingconn = new SqlConnection(ConnStr); 

            SqlDataAdapter hubingda = new SqlDataAdapter("select employeeid,lastname,firstname from employees",hubingconn); 

            DataSet hubingds = new DataSet(); 

            try 

           catch(Exception error) 

                                    Response.Write(error.ToString()); 

                }  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐