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

What are the types of filters in mvc?

1 Answers  


What is the use of mockmvc?

1 Answers  


What is model layer mvc?

1 Answers  


What is razor view engine in mvc?

1 Answers  


Is mvc better than web forms?

1 Answers  


What is mvc mvp mvvm?

1 Answers  


What is the main purpose of mvc architecture?

1 Answers  


Is mvc stateless?

1 Answers  


How do you implement forms authentication in mvc?

1 Answers  


what are the components defined in the model from mvc architecture?

1 Answers  


Mention what are the two ways to add constraints to a route?

1 Answers  


What does Model, View and Controller represent in an MVC application?

1 Answers   NA,


Categories