asp.net 订单导入,例如:Excel其中备注一列的前10行为0,其它为正常中文备注,导入时候只显示零,其它中文备注都为空,将10行中间任意一行改成文字就可以导入!这是为什么? 望大侠们帮忙,谢谢!
解决方案 »
- RegisteredUser usr = db.RegisteredUsers.FirstOrDefault(a => a.LoginName == login
- (100分)到底怎么样得到储存过程的值!!!!
- 请问关于自动登陆
- 超难:ASP.NET使用URL Rewrite实现链接静态化
- UltraWebTree 控件怎样显示各节点间的连线?
- Fileupload上传文件重命名及获取路径并显示的问题
- WebService
- 谁有gb2big5.zip的下载,我如何判断用户输入的是gb汉字还是big5汉字,并如何将他们转换成big5编码的繁体字
- 关于框架的问题?
- MVC4, Area中Ajax.ActionLink访问[HttpPost]属性的Action无效
- ASP。Net reporting Service 和SQL 存储过程(SOS)(在线等)
- .net 服务器下拉框获取值问题
this.OpenFileDialog1.Filter = "Excle文件(*.xls)|*.xls";
if (this.OpenFileDialog1.ShowDialog() == DialogResult.OK)
{
filename = this.OpenFileDialog1.FileName;
string strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" +filename + "';Extended Properties=Excel 8.0;";
OleDbConnection oleConnection = new OleDbConnection(strconn); string strCommondText = " SELECT * FROM [Sheet1$] ";
oleConnection.Open();
DataSet myDataSet = new DataSet();
OleDbDataAdapter oleAdper = new OleDbDataAdapter(strCommondText, oleConnection);
oleAdper.Fill(myDataSet,"print");
oleConnection.Close();
this.dataGridView1.DataSource = myDataSet.Tables["print"].DefaultView;
this.dataGridView1.Enabled = true;
this.dataGridView1.Columns[0].Visible = false;
this.dataGridView1.Columns[1].Visible = false;
this.dataGridView1.Columns[2].Visible = false;
}