0

I need to download a list of pdf files, but I need to send the list of name files to a method as parameters in code behind to handle these. I tried with Page Methods, and Web Methods, but since these are static I can't use Response.

Then I read that the way I have to do it or one way is using a web service, since the methods can be non static. But it gets little messy or tricky since I only need to call a method in code behind being non static.

I have never used Web Services and I don't Know the level of complexity in the code that I need since I only need the mentioned method.

I just tried Page and Web method and it was kind of simple. Could you guide me in this situation, I have not found a clear example. I want to call the method from javascript.

Thanks a lot, Regards.

5
  • Have you tried PHP? Commented Mar 13, 2019 at 2:40
  • I have the project advanced in asp net, Thanks for the suggestion Russ :) Commented Mar 13, 2019 at 2:41
  • 1
    Hello, I got it following the instructions of this page: aspsnippets.com/Articles/… Thanks, Best Regards Commented Mar 13, 2019 at 23:44
  • Please post your answer below and accept it. Commented Mar 14, 2019 at 2:36
  • I can't.. We are no longer accepting answers from this account. See the Help Center to learn more. Commented Mar 14, 2019 at 4:19

1 Answer 1

0

Are you using full .net framework, or .net core? I hope this doesn't add to your confusion, but if you have the option to use .net core I'd recommend it. Creating WebAPI's is quite easy. Check out Microsoft's official documentation

Sign up to request clarification or add additional context in comments.

3 Comments

I'm using Web Forms (Aspx)
Hello, I got it following the instructions of this page: aspsnippets.com/Articles/… Thanks, Best Regards
Glad you got it working. Sorry I couldn't be of more help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.