Which approach should you recommend?

Correct Answer for the following Question is given below

You need to design a solution for calling a server-side method of the code-behind file from JavaScript.Which approach should you recommend?If you prefer not to reload the page, you can use one of these techniques to allow clientside code to call server-side methods and process the results:Page methods Mark the static method you want to expose with the WebMethod attribute, add a ScriptManager server control, and set ScriptManager.EnablePageMethods to true. Then you can use the PageMethods object within JavaScript to call server-side methods and process the results.


Which approach should you recommend?


Use PageMethods.

Use an UpdatePanel control.

Use an UpdateProgress control.

Configure the server-side method to return a JsonResult.

Correct Answer

The Correct Answer for this Question is

Use PageMethods.


The Question – Which approach should you recommend? has been answered correctly and answers for the question is Use PageMethods.

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *