First Last

First Last

  • NA
  • 648
  • 73.2k

Can a mvc razor partial view be reusable. Have it's own functionality?

Aug 16 2020 11:05 AM
Can't a partial view be reusable have it's own JavaScript to fire off a controller method?
 
I would want that so I can REUSE this partial view in any parent view. For instance a LIKE button that I can place on any parent whereby the parial has it's own code to process the like (update a table).
 

Answers (1)