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
Eswar Datta
NA
115
7.6k
Web services and jquery ajax
Dec 26 2018 1:06 AM
[WebMethod]
public void Getcountries()
{
List<oCountries> countries = new List<oCountries>();
SqlConnection con = new SqlConnection(constr);
SqlCommand command = new SqlCommand();
command.CommandType = CommandType.StoredProcedure;
command.CommandText = "RETRIEVE_DATA";
command.Connection = con;
con.Open();
SqlDataReader sdr = command.ExecuteReader();
while (sdr.Read())
{
oCountries countriesS = new oCountries();
countriesS.CID = Convert.ToInt16(sdr["CTRY_ID"]);
countriesS.CName = sdr["CRTY_NAME"].ToString();
countries.Add(countriesS);
}
JavaScriptSerializer js = new JavaScriptSerializer();
Context.Response.Write(js.Serialize(countries));
}
How to bind this data to dropdown list using jquery ajax
Reply
Answers (
1
)
Facebook Graph API integration
Mailbox unavailable. smtpclient