2
Reply

What is significance of 'using ' in razor view?

sumank

sumank

11y
2.5k
0
Reply

    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}

    @using(Html.BeginForm())

    {
    Content-Here.....
    }

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