In ASP.NET MVC, what is the purpose of the ViewBag object?
A. Validating user input
B. Handling user authentication
C. Passing data from the controller to the view
D. Controlling page layout
Answer: Option C
A. Validating user input
B. Handling user authentication
C. Passing data from the controller to the view
D. Controlling page layout
Answer: Option C
A. Active Server Pages Network
B. Advanced Software Programming .NET
C. Active Server Pages .NET
D. Advanced Server Pages Network
Which of the following is NOT a valid ASP.NET control?
A. asp:Label
B. asp:TextBox
C. asp:Button
D. asp:Div
What is the purpose of the ViewState in ASP.NET?
A. To store database connection information
B. To store the state of controls on the page
C. To store the web page layout
D. None of the above
Join The Discussion