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
Mohammed Salim
NA
56
3.5k
SQL Select based on user input
May 15 2018 12:49 PM
I m trying to retrieve no of rows from sql based user input & display in gridview
Please help!
This is code what I'm using
Int32 text = Convert.ToInt32(
this
.Txtusers.Text);
con.Open();
cmd =
new
SqlCommand(
"select TOP '"
+ text +
"' * from Avaya_Id where LOB = '"
+ DDLOB.SelectedItem.Value +
"' and Status = 'Unassigned'"
, con);
SqlDataReader rdr = cmd.ExecuteReader();
GridView1.DataSource = rdr;
GridView1.DataBind();
con.Close();
Reply
Answers (
1
)
usage of out modifier in c#
I am getting in the output System.Collections.Generic.List