Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

viewbag.property -- intellisense ?

Posted on 2013-05-21
1
Medium Priority
?
492 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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