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
Pravin Ghadge
562
2.1k
586.6k
Linq
Dec 17 2010 2:07 AM
Iam using VS 2008
I want to add country in Dropdownlist.
I have used following code:
List
<
string
> Country = GetCountryList();
var sortedCountry = from c
in
Country orderby c select c;
// var sortedCountry = from c in Country orderby c select c;
ddlCountry.DataSource = sortedCountry;
ddlCountry.DataBind();
But iam facing error on line:var sortedCountry = from c
in
Country orderby c select c;
I have also used foll. namespaces:
using
System.Collections.Generic;
using
System.Globalization;
using
System.Linq;
Reply
Answers (
7
)
Using Javascript
GRIDVIEW COLUMN NOT GETTING UPDATED