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
shibasankar behera
NA
117
100.9k
search from gridview in C#
Sep 5 2013 2:16 AM
when I am searching for some records in gridview, the error message is showing like
"
Specified argument was out of the range of valid values
"
the code is:
con.Open();
string query = "select Name from View where ID like'" + txtID.Text +"%'";
SqlDataAdapter da = new SqlDataAdapter(query, con);
DataSet ds = new DataSet();
da.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
GridViewItm.DataSource = ds;
GridViewItm.DataBind();
GridViewItm.Show();
}
else
{
Response.Write(@"<script language='javascript'>alert('Requested Records Not Found')</script>");
}
Reply
Answers (
1
)
Cannot open database requested by the login
Is it possible to use openFileDialog to get the folder path?