Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 30, 2012 03:23 PM by bruce (sqlwork.com)
Member
328 Points
260 Posts
Mar 30, 2012 09:09 AM|LINK
Hi,
I have one question. On a cshtml file I can access ViewContext.Writer.Write
On a cs file how can I access it?
Anyone knows?
Thanks
Contributor
2955 Points
551 Posts
Mar 30, 2012 09:15 AM|LINK
Refer the below post containing actual usage of Viewcontext. Its communication medium from controller to view.
http://forums.asp.net/t/1564794.aspx/1?ViewContext+in+MVC
All-Star
36850 Points
5445 Posts
Mar 30, 2012 03:23 PM|LINK
you pass it to the cs files method. if you write a HtmlHelper extension its passed to all methods.
pantonis
Member
328 Points
260 Posts
ViewContext
Mar 30, 2012 09:09 AM|LINK
Hi,
I have one question. On a cshtml file I can access ViewContext.Writer.Write
On a cs file how can I access it?
Anyone knows?
Thanks
Please mark this post as answer if it helped you solve your problem
dharnendra
Contributor
2955 Points
551 Posts
Re: ViewContext
Mar 30, 2012 09:15 AM|LINK
Refer the below post containing actual usage of Viewcontext. Its communication medium from controller to view.
http://forums.asp.net/t/1564794.aspx/1?ViewContext+in+MVC
Technical Leader
GTL-Ahmedabad
bruce (sqlwo...
All-Star
36850 Points
5445 Posts
Re: ViewContext
Mar 30, 2012 03:23 PM|LINK
you pass it to the cs files method. if you write a HtmlHelper extension its passed to all methods.