Hi Friends,
After making the ADO.Net connection, when i am trying to fetch the s_name value based on the input from textbox using below query. I am getting object reference null error. Can anybody identify what actually is the flaw in the below code
string @searchValue = txtStudentName.Text;
string sql = "SELECT * FROM Student_Detail where s_name=@searchValue";
No record is coming in sql object.
SqlCommand cmd = new SqlCommand(sql, connection);
Rojalin SahooPosted Nov 16, 2015, 12:07 AM
Sumit DwivediPosted Nov 4, 2015, 4:56 AM
Krishna Rajput SinghPosted Nov 3, 2015, 11:41 AM
Upendra Pratap ShahiPosted Nov 3, 2015, 11:40 AM
Ravi PatelPosted Nov 3, 2015, 10:41 AM