Click here to Skip to main content
15,889,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
in my web page i use auto completion for Medicine text box.when user enter value which is not in the listed item it will enter to database and added to List.Medicine list for different for different user say doctype1,doctype2 . when two type of doctor login to the system and when doctype2 added a new medicine name List changed and it will be appear in medicine list of doctype 1 also since i have used a static string array for holding list.how can i use this Autocompletion method with out this conflict. ie i want to display different item for different user using auto completion.auto completion use static method so i have to use static variable



static string[]
XML
MedicineList;

<pre lang="cs">[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
   public static string[] GetCompletionList3(string prefixText, int count, string contextKey)
   {
       return (from m in MedicineList where m.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase) select m).Take(count).ToArray();

   }</pre>

Plz Help...........................
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900