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
Joe Wilson
NA
7.8k
432.8k
What is the problem of searching Informaton in my code?
Jul 5 2014 10:04 AM
My code:
public DataTable SearchStudent_Number()
{
Connection C1 = new Connection();
return C1.ShowData("select * from Student where Student_Number like '" + this.Student_Number + "%'");
}
public DataTable SearchAverage()
{
Connection C1 = new Connection();
return C1.ShowData("select * from Student where Average like '" + this.Average + "%' ");
}
public DataTable SearchLastName()
{
Connection C1 = new Connection();
return C1.ShowData("select * from Student where LastName like '" + this.LastName + "%'");
}
public DataTable SearchField()
{
Connection C1 = new Connection();
return C1.ShowData("select * from Student where Field like '" + this.Field + "%'");
}
public DataTable SearchStudent_ID()
{
Connection C1 = new Connection();
return C1.ShowData("select * from Student where Student_ID like '" + this.Student_ID + "%'");
}
}
}
Reply
Answers (
4
)
How can I use two button for one case in C#?
What is the problem of My code about editting In c#?