Solved

viewbag.property -- intellisense ?

Posted on 2013-05-21
1
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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