Solved

viewbag.property -- intellisense ?

Posted on 2013-05-21
1
458 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now