This is gunna be tuff, if u have the column names on the end thats calling the webservice your fine, but if not then thats gonna suck..
if you have the names you can basically make an array list on the Aspx side -
using system.collections()
public XmlDocument callwebsvc()
{
arraylist arr = new arraylist();
arr.add("columnName = '"+ textbox1.Text +"', columnTwoName = '" + textbox2.Text + "'");
svc = new webserviceref.service();
svc.QueryDB(arr.ToArray());
}
so when your back at your web service you have a nice little array to work with..
[webmethod]
public querydb(string[] arr){
string sqlcommand = "select blabla from blabla"
string where = "";
for(i = 0; i < arr.length; arr++)
where = t[i].tostring();
}
sqlcommand = sqlcommand + " where " + where;
}
see what i mean? i did it before its handy enuf, just tricky