I want to pass uploaded file to asp.net webmethod with other parameters.
I know how to use handlers. But my function is like,
[webmethod]
public static void(string name,??)
{
here I call asmx webservice to pass name. now how can I pass the file uploaded? What type of parameter to pass(in place of??) from jquery ajax call so that I can pass that to asmx service?
}
In handler I can't do this in a single function. Here concept is,first the name will be saved,unique id will be returned from sql,then I'll name the file with the id and save to folder. The saving concept I have to write fully in the asmx webservice.
So if I can pass the file from jquery/ajax call with the name parameter,that will be best obviously,but you can tell other methods.
What I have tried:
I tried with handlers but can't achieve what I need.