When I tried to render my partial view with a standard call I got a compile time error saying “Cannot implicitly convert type ‘void’ to ‘object’.”
The reason behind this compile time error was the RenderPartial() call renders its result directly to the response object and cannot be used like a simple string result.
To resolve the issue, all you have to do is enclose the call in a code block.
Thanks its working……
Sweet. Helped me.
Thanks,
Sreeju
Thank you 🙂
Thanks! This was useful for me 😀
thanks Worked!
Thanks it is working…
What was the reason it was showing error
Thanks, this solved my problem too.