Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
search from gridview in C#
shibasankar behera
Sep 5 2013 2:16 AM
1.2k
Reply
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>");
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Cannot open database requested by the login
Is it possible to use openFileDialog to get the folder path?