httpwebrequest - How to pass list to POST parameter asp.net web request -


i have web service has list parameter:

[webmethod]     public void getdepartmentby(list<string> key, list<string> value)     {         string condition = "";          (int = 0; < value.count; i++)         {             if (!value.equals(""))             {                 condition = condition + "[" + key + "]" + " = '" + value + "' , ";             }         }            context.response.write(new javascriptserializer().serialize(condition));     } 

i try set parameter this:

string poststring = string.format("key={0}&value={1}", key, value); 

but it's not working!
there way pass list parameter web request?


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -