I keep getting Object is possibly 'undefined'. TS2532 and I know that it's due to assignment of setViewer to undefined, which I have done for the purp ...
I keep getting Object is possibly 'undefined'. TS2532 and I know that it's due to assignment of setViewer to undefined, which I have done for the purp ...
I have the following accordion generator which works fine when included directly in the view: Now I wanted to move toward a more clean implementat ...
I have 2 questions: 1. what is Viewcontext and what are its advantages? 2. why we have to use it in tag helpers? Actually i am the beginner and fol ...
I have a controller like this in my project: The link_to helper is not rendering a link to the browser, rather it's printing the html: Successfull ...
I have layout page in asp.net MVC application and this page contains a navbar See I have actionmethod for each item in my navbar now I want to app ...
So I am really excited to use Core Data now because of how much simpler they made it (as of WWDC 2016). On app launch, I plan to load pre-updated dat ...
I have been using the solution below with beta 5, but this no longer works in RC1 : How to access RouteData from an ASP.Net 5 Tag Helper in MVC 6 Vie ...
I'm writing an html helper extension for MVC5. I need to access the ViewContext's stream to edit it. (like a textreader) Is there any way to access ...
In my razor views, I have: Which correctly applies that stylesheet when printing the page. However, in some cases I'm rendering the view to an HTM ...
Create window: Create view for view-model named [Root namespace].Model.ViewContext1. At design time see "Can't find view for view-model". When ru ...
I'm trying to implement dynamic navigation inside of web project using MVC4. All of my dynamic parts of project are displayed as partial views rendere ...
Our project uses a lot of custom HtmlHelper extension methods to be referenced in views like: However, I'd like to keep them separated out from the ...
I am having a problem rendering my view in the layout page using mvc 3. When I render the result using a html helper, my output is on top of everythi ...
I want to use a method i have in my helper inside my controller. I don't know how to use the view_context which i've heard could do the trick ...
I would like to create a static helper method that I can call from a view. Is it possible for a helper method to have access to the current ViewConte ...