How to Apply Styles with Html Helpers in MVC4 Razor
How to Apply Styles with Html Helpers in MVC4 Razor In this article let us discuss how to apply CSS styles using HTML helpers. using Inline using Class Using Inline CSS From the below code, we can
MVC Razor : Different way of getting @Html.TextBox value from view to controller
In this article we are going to discuss about the different way of getting the value from the textbox using MVC razor. Index.cshtml Here we had included the Html.TextBox in the Index.cshtml. <div> @using (Html.BeginForm("Index", "Index",
How to handle Multiple submit buttons in the same form/page
Handle Multiple submit buttons in single page Scenario : For example, we have a login form with "sign in","sign up" and "cancel" button. In this scenario, "sign in" will redirect/do some action,same like sign up
How to use MVC Bind Attributes
What is Attributes ? Attributes are classes that allow you to add additional information to elements of your class structure. What is Bind Attributes ? In ASP.NET MVC View that accepts user input and
How to create Areas in MVC 4 with Razor
How to use MVC Areas feature using Razor What is Areas ? In MVC we have default folders (view, model, controller...) structure, If application grew larger, then it will be complicated to maintain a modules
How to create custom HTML Helpers using MVC 4 Razor
What is HTML Helper ? The HTML helper is a method that returns a string. ASP.NET MVC Framework itself contains extension methods for HtmlHelper class to have well structured helper methods separation. Asp .Net MVC allow
Reusing @helpers Method across multiple views in mvc
Here we going to discuss about how to make the @helper method can be reusable across all multiple views in our project. We can achieve this by placing .cshtml in the App_Code folder to make visible to access
Creating reusable method using @helper in MVC Razor
What is HTML Helper ? The HTML helper is a method that returns a string. ASP.NET MVC Framework itself contains extension methods for HtmlHelper class to have well structured helper methods separation. Asp .Net MVC allow