Solved

viewbag.property -- intellisense ?

Posted on 2013-05-21
1
469 Views
Last Modified: 2013-05-27
How can I change the below so "@Html.ViewBag." provides intellisense ?
-----------------------------------------------
@model IEnumerable<MvcApplication14.Models.Table2>

@{
    ViewBag.Title = "Index";
}

@Html.ViewBag.Title
-----------------------------------------------
http://stackoverflow.com/questions/4719089/asp-net-mvc-3-viewbag-property-provides-no-intellisense
0
Comment
Question by:finance_teacher
1 Comment
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 39185436
check this:

http://stackoverflow.com/questions/4719089/asp-net-mvc-3-viewbag-property-provides-no-intellisense

"You cannot expect any Intellisense out of weak types such as ViewData/ViewBag. Use strongly typed views and view models if you want compile-time safety."

http://stackoverflow.com/questions/7611833/razor-intellisense-and-code-formatting-with-mvc-4

also check your use:

http://completedevelopment.blogspot.in/2011/12/stop-using-viewbag-in-most-places.html
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question