After creating default MVC application in Visual Studio there is a default layout file has been added in shared folder under views having name _Layout.cshtml. This file is used to provide consistent look on all of the pages havin...
Saturday, August 30, 2014
Saturday, June 28, 2014
Returns Password input element using Html.Password() Handler: MVC
Html.Password() handler, used to return password input element to be input password value by user. This article describes about to using password html helper that will make text unreadable by other users in MVC application.
Like...
Monday, June 9, 2014
Returns CheckBox Input element using Html.CheckBox() Handler: MVC
Html.CheckBox() handler, used to return check box input element to be input true or false value by user. Selected checkbox will return true and un-selected will return false, otherwise it returns null for the programmer to store...
How to Execute Server-side code based on condition: Razor
Razor syntax helps developers to execute the code based on some condition specified like if-else or may be switch statement. Programmer can easily decide, which statement(s) need to be executed, based on the condition given with...
Wednesday, June 4, 2014
Return Text Input Element using Html.TextBox() handler: MVC
Html.TextBox() handler used to return text input element on the page at run time. It supports some types of parameters discussed and also have some more options to returning text inputs on the page. Mostly it is of two types list...
Return Label Element using Html.Label() Handler: MVC
Html.Label() handler used to return label element on the page at run time. It supports some types of parameters discussed and also have some more options to returning labels on the page. Mostly it is of three types listed below w...
Variable, Conditions and Looping in Asp.Net Razor: C#
Like all other programming languages, variables are named entities used to store data to be used in particular scope. Declaration of variables must follow all the rules described in other languages like must begin with alphabetic...
Introduction to Mark-Up Language: Asp.Net Razor
Razor, mostly used language in Asp.Net MVC, is not a programming language but it is a server-side mark up language. It is basically used to let the programmer embed server based code in to web pages.
By running on the server-sid...