Please look at following code:
Data in above code is a array. Now I want data is a column in table or a dataset. Then how do I write code in page .aspx to achieve it. Please don't use JSon + MVC because I use .NET 2.0. Help me. Thanks you very much.
Loading

Roei BarRank #1,271 · 1.4K reputationPosted Oct 10, 2009, 6:03 AM EDT
http://plugins.jquery.com/node/1196
tuanbs19 reputationPosted Oct 10, 2009, 9:37 AM EDT
Roei BarRank #1,271 · 1.4K reputationPosted Oct 10, 2009, 8:58 PM EDT
Roei BarRank #1,271 · 1.4K reputationPosted Oct 10, 2009, 9:03 PM EDT
to expose the DB information
here is a sample :
type="text/javascript"> $(document).ready(function(){ $("#txtSearch").autocomplete('autocompletetagdata.ashx'); }); [WebService(Namespace = "http://www.yoursite.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class AutocompleteTagData : IHttpHandler { public void ProcessRequest(HttpContext context) { // Note the query strings passed by jquery autocomplete: //QueryString: {q=a&limit=150×tamp=1227198175320} LookupTagCollection tags = Select.AllColumnsFrom() .Top(context.Request.QueryString["limit"]) .Where(LookupTag.Columns.TagDescription).Like(context.Request.QueryString["q"] + "%") .OrderAsc(LookupTag.Columns.TagDescription) .ExecuteAsCollection(); foreach (LookupTag tag in tags) { context.Response.Write(tag.TagDescription + Environment.NewLine); } } public bool IsReusable { get { return false; } } }