Click here to Skip to main content
15,885,650 members
Articles / Web Development / HTML

PopupLookup control, an alternative for AJAX?

Rate me:
Please Sign up or sign in to vote.
3.69/5 (4 votes)
24 Jan 2008CPOL3 min read 34.2K   305   34  
Getting that 1 record out of 1000000+ records with these convenient controls.
using System;

namespace Business
{
    [System.ComponentModel.DataObject]
    public class Organisation : IBusiness
    {
        [System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Select, true)]
        public LookupDataSet GetLookupList(string partOfNaam)
        {
            LookupDataSet ds = new LookupDataSet();

            for (int i = 0; i < 10; i++)
            {
                ds.Lookup.AddLookupRow(string.Format("OrganisationName{0}", i), i, string.Format("OrganisationDescription {0}", i));
            }

            return ds;
        }

        public string Name()
        {
            return this.GetType().Name;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
3sL
Software Developer
Netherlands Netherlands
Hi my name is Dries de Groot. I have a Masters degree in applied physics and am graduated in solid-state matter. Besides that I am a .NET Professional with scrum certificates

Comments and Discussions