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
Jagjit Saini
NA
166
0
Error
Jul 20 2011 8:39 AM
Hi
protected void lstcountry_SelectedIndexChanged(object sender, EventArgs e)
{
string qry = "select * from tbl_location where countrycode = " + lstcountry.SelectedValue;
SqlDataAdapter da = new SqlDataAdapter(qry, ConfigurationManager.ConnectionStrings["cn"].ConnectionString);
DataSet ds = new DataSet();
da.Fill(ds);
grdlocation.DataSource = ds;
grdlocation.DataBind();
}
It is giving error "Incorrect Syntax near = "
Thanks
Reply
Answers (
1
)
Upload
Gridview