TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sumit Dwivedi
NA
8
2.3k
ADO.Net connection in C#
Nov 3 2015 9:54 AM
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);
Reply
Answers (
5
)
converting integert to date format
.net entity framework