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
Krishna
NA
37
9.4k
i will like to retrieve the element which is not like same
Mar 23 2015 3:01 AM
i would like to retrieve the the text which is not like the text i entered in the text box here is my code i am not getting the table displayed
.cs
string x = Request.QueryString["Name"] + "%";
con.Open();
SqlCommand scom = new SqlCommand();
scom.Connection = con;
scom.CommandText = "select Keyword from products where keyword NOT LIKE @x ";
// scom.CommandText = "select * from proper where @x notlike keyword";
scom.Parameters.AddWithValue("@x", x);
DataSet ds = new DataSet();
SqlDataAdapter dap = new SqlDataAdapter();
dap.SelectCommand = scom;
dap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
Reply
Answers (
6
)
c# windows application
compare the database