I have the following query, I have to show the records in a gridview but this error marks me, "The input string does not have the correct format."
I have parameters in string and an integer
App_Data.DataSet1TableAdapters.PS_USR_ConsultaExternaTableAdapter adapter = new App_Data.DataSet1TableAdapters.PS_USR_ConsultaExternaTableAdapter();
adapter.GetData("", "", "", int.Parse(this.TextBox1.Text));
this.gvbuscar.DataSource = adapter.GetData("", "", "", int.Parse(this.TextBox1.Text));
this.gvbuscar.DataBind();