I have result System.Data.SqlClient.SqlDataReader
Some help?
Some help?
- private void ukupno_bez_pdv_roba()
- {
- SqlConnection con2 = new SqlConnection(cs);
- string sqlquery = ("select * from mp_racun_roba where tip_robe = 'Roba (Generalno)' and id=" + id_fakture);
- SqlCommand command = new SqlCommand(sqlquery, con2);
- con2.Open();
- SqlDataReader sdr = command.ExecuteReader();
- roba_bez_pdvTextBox.Text = sdr.ToString();
- con2.Close();
- }

Nanddeep NachanRank #38 · 35.2K reputationPosted May 31, 2018, 8:40 PM EDT
Manas TripathiRank #7,584 · 238 reputationPosted May 31, 2018, 12:26 PM EDT
Sumit ChaudharyRank #3,483 · 416 reputationPosted Jun 1, 2018, 3:08 AM EDT
Goran BibicRank #993 · 2K reputationPosted May 31, 2018, 9:14 PM EDT
Nanddeep Nachan
Error...Index was outside the bounds of the arrayGoran BibicRank #993 · 2K reputationPosted May 31, 2018, 9:15 PM EDT
Manas Tripathi
Textbox value is empty....sql query is okGoran BibicRank #993 · 2K reputationPosted Jun 1, 2018, 8:55 AM EDT