In ASP.NET MVC, what is the purpose of the ViewData dictionary?
A. To pass data between the controller and the view
B. To manage session data
C. To define routing rules
D. To handle HTTP requests and responses
Answer: Option A
Related Questions on ASP.NET and Web Development with C Sharp
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