Choose the best way of ensuring that your web method uses the cache.

Options
- Add Cache = true to the WebMethod attribute
- Add EnableCache = true to the WebMethod attribute
- Add CacheTime = 300 to the WebMethod attribute
- Add CacheDuration = 300 as a parameter to the WebMethod attribute.


CORRECT ANSWER : Add CacheDuration = 300 as a parameter to the WebMethod attribute.

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement