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
Post a Comment