Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Mention what "beforfilter()","beforerender" and "afterfilter" functions do in controller?



Mention what "beforfilter()","beforerender" and "afterfilter" function..

Answer / Satyendra Anuragi

In the context of MVC Model View Controller, the beforeFilter(), beforeRender(), and afterFilter() functions are used to perform specific tasks at different stages during the request-response cycle:nn1. beforeFilter(): This function is typically used for authentication purposes, where it checks if a user is authenticated before processing further requests.n2. beforeRender(): This function is called right before the view is rendered and can be used to set data or perform modifications on the view just before it's displayed to the user.n3. afterFilter(): This function is executed after the view has been processed, and it can be utilized for logging purposes or for performing cleanup tasks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MVC Model View Controller Interview Questions

How do you explain mvc?

1 Answers  


What is mvc core?

1 Answers  


Explain how routing is done in mvc pattern?

1 Answers  


What is mvc view engine?

1 Answers  


What is mvc handler?

1 Answers  


Is angular mvvm or mvc?

1 Answers  


What is mvc technology?

1 Answers  


Mention what is the difference between viewdata and viewbag?

1 Answers  


what is get and post action types?

1 Answers  


What is mvc viewbag?

1 Answers  


What is ignore route in mvc?

1 Answers  


Explain what is database first approach in mvc using entity framework?

1 Answers  


Categories