Category: ASP.Net MVC
-
Why we use HTML helpers in ASP.Net MVC instead of normal ASP.Net Controls?
If you are from ASP.Net Web Forms background, you might’ve wondered why we are using HTML helpers instead of ASP.Net controls in ASP.Net MVC? It is easy to use ASP.Net controls such as asp:TextBox – isn’t it? Because ASP.Net WebForms controls remember what you typed in the form and you can easily get the property…
-
Pass data from View to Controller in ASP.Net MVC
There are many ways to pass data from Controller to View – ViewBag,ViewData, TempData,though a Model. But you wonder how you can pass data from View to Controller Looking for quick answer? If you came from Google and are looking for quick answer, the answer is this: you’ll have to submit the form (in the…
-
Partial View in ASP.Net MVC
Partial Views are just views which we can reuse across your ASP.Net MVC application. You can think Partial View as a reusable control. You don’t need to write code for them every time – You can drop Partial View like a block wherever you want to and content of the partial view would be displayed.…
-
Getting textbox input value in ASP.Net MVC
You want to get the input using textbox in your ASP.Net MVC application. And you want to get that value in your controller’s action method for saving it to database or for further processing. Before arriving at the solution, let us revisit a simple fact All browsers can understand only HTML,CSS and Javascript. The above…