本文介绍了如何解决此错误(类型'System.FormatException'的未处理异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! hii,每个人 如何解决此错误(类型'System.FormatException'的未处理异常......) 在按钮搜索时,放入字符会给我这个错误。 da.SelectCommand = new SqlCommand( select * from tblcontacts其中id类似于 + Int32.Parse(textBox3。 Text ),cs); dt.Clear(); da.Fill(dt); dataGridView1.DataSource = dt; 解决方案 hii,everyoneHow to solve this error(an unhandled exception of type 'System.FormatException'...)in button search when put characters give me this error . da.SelectCommand = new SqlCommand("select * from tblcontacts where id like " +Int32.Parse( textBox3.Text), cs); dt.Clear(); da.Fill(dt); dataGridView1.DataSource = dt; 解决方案 这篇关于如何解决此错误(类型'System.FormatException'的未处理异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-15 11:50