sumank
What is significance of 'using ' in razor view?
By sumank in ASP.NET MVC on May 10 2013
  • Jignesh Trivedi
    Apr, 2014 14

    Two significance use of @using keyword in razor view1) include name space@using MvcContrib.UI.Grid 2) @using can also be used with bock of code to ensure all objects are dispose when they go to out of scope@using(Html.BeginForm()){// your code}

    • 0
  • sumank
    May, 2013 10

    @using(Html.BeginForm())

    {
    Content-Here.....
    }

    It ensures that an object is disposed when it goes out of scope.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS