Link to home
Start Free TrialLog in
Avatar of solution1368
solution1368

asked on

webservices

I want to partNos information came from the database.
how can I do that with webservices?


string[] partNos = { "partno1", "partno2","partno3", "partno4" };


[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
    public static string[] GetCompletionList(string prefixText, int count, string contextKey)
    {
        string[] partNos = { "partno1", "partno2","partno3", "partno4" };
        return(from m in partNos where m.StartsWith(prefixText,StringComparison.CurrentCultureIgnoreCase) select m).Take(count).ToArray();
    }
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial