View Engine is responsible for rendering the view into html form to the browser.ASP.NET MVC includes two different view engines, the newer Razor View Engine and the older Web Forms View Engine. What is Razor?The Razor view was introduced with ASP.NET MVC 3 and is the default view engine moving forward.Razor provides a streamlined syntax for expressing views that minimizes the amount of syntax and extra characters. It effectively gets out of your way and puts as little syntax as possible between ...
Read More
Microsoft has released the preview version of Visual Studio 2015 and .NET 4.6 for developers to try and provide feedback on usage or issues. .NET 4.6 preview comes with C# 6.0 which includes the new additional features expected by developers to improve the coding productivity.In this article I am going to describe the new features introduced in C# 6.0. If you haven’t download the Visual Studio 2015 please get it from below download button.Property Initialization with default valueIn C# 6.0...
Read More
ASP.NET MVC provides us two options ViewData and ViewBag for passing data from controller to view.ViewData and ViewBag are almost similar. Passing data with ViewBag.The ViewBag feature allows us to define arbitrary properties on a dynamic object and access them in a view.The dynamic object is accessed through the Controller.ViewBag property.Let us see how the ViewBag works through a small example.After creating a new MVC application in the HomeController Write the following code in the Inde...
Read More
There are multiple Validation attributes available in MVC. Validation attributes comes from System.ComponentModel.DataAnnotations.Available validation attributes are-System.ComponentModel.DataAnnotations.CompareAttributeSystem.ComponentModel.DataAnnotations.CustomValidationAttributeSystem.ComponentModel.DataAnnotations.DatatypeAttributeSystem.ComponentModel.DataAnnotations.MaxLengthAttribueSystem.ComponentModel.DataAnnotations.MinLengthAttributeSystem.ComponentModel.DataAnnotations.RangeAttribut...
Read More
VB script Error HandlingDurning run time, if QTP encounters any erorr then it will display the error message which haults the script execution. Inorder to overcome this we should suppress the error message and then we should take appropriate action to handle the error. This can be done using “On error Resume Next” and err.numberExample: Dim a,b,c &n...
Read More
Some customers may not want to use Departments menu available. We need to have some option to remove the ‘Departments’ menu if we don’t want it on role center page. As we are all know we can customize a role center to hide the Departments menu for that client or a user. But what if want to hide for all users? How to do that? Here, I have jotted down the steps to achieve this.Let’s consider the role center “Sales Order Processor” is shown below.Open the Microso...
Read More
We usually print header and details section of a document on same page, what if we want to print on different pages? And how to do this?We can print header and details section of a document in different pages easily. To achieve this we have to place two different table controls, where one table control refers to header and another refers to details (lines), in a list control with a few properties change of these controls such as grouping, and page breaks, for example.In this blog I’m print...
Read More
We know that TransHeader and TransFooter section types were available in NAV 2009 version but there are no such section types in RDLC, even though wecan achieve these in RDLC report using report functions.We can print TransHeader and TransFooter in RDLC report using below functions: 1. Using RunningValue function. 2. Using ReportItems function.RunningValue Function: It uses a specified function to return a running aggregate of the specified expre...
Read More