Tag: How to

Adding a WinJS control in JavaScript code in Windows 10 App

You can add the WinJS control to the page in the markup page or from your javascript code. How to add a WinJS control in your JavaScript code for Windows 10 Apps ? Add the element in the markup (HTML page) that will host your control. <div id=”element”></div> In your JavaScript code , retreive the element using the document.getElementById method. var containerElement = document.getElementById(“element”); You…

Collapsible links for subcategories in Docusaurus Sidebar

Are you looking at a way to get collapsible links under subcategories in Sidebar in Docusaurus?. We provide you few options in this blog post. One of the easiest way make the links under categories in docusaurus is to change set the docsSideNavCollapsible: true in the siteConfig.js. How to Get Collapsible Links for subcategories in Docusaurus Sidebar ? While the previous fix works only for…

How do Specify the Exit Code of Console Application in .NET?

There are times when you want to specify the exit code from the Main function for example when working on the Console Application in .NET . How do Specify the Exit Code of Console Application in .NET? You can use the Environment.Exit to specify the exit code in the Console Application.

Using Where clause in T-SQL Query

If you want to restrict the results of the query to only the records that you need instead of returning all the records from the table , you can use the WHERE clause to filter the records. You can simply specify the WHERE clause and also specify the conditions that the rows must meet. How to Filter records using WHERE clause in SQL Server ?…

Using FETCH and OFFSET to get N records in SQL Server

In SQL Server , you can use the OFFSET and FETCH and apply paging and retreive N records at a time. OFFSET AND FETCH clause are part of the ORDER BY clause and hence you must include the ORDER BY clause. For example , you might want to skip the first 4 records and retrieve 5 records from the query , you could use the…

Java – How to create BigDecimal from string value ?

Problem Statement You want to create a BigDecimal value from a string type in Java. Solution Use the BigDecimal class and pass the string value in the constructor to create the BigDecimal value as shown below. The output of the above program is Abundantcode.com Java Tutorials 198654586.297292792

C Program to display the characters from A to Z

Problem Write a program in C to display all the characters from A to Z using Loop constructs. How to display Characters from A to Z using C Programming Language ? Output Abundantcode.com programming sample A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

C Program to compute Quotient and Remainder

Problem Write a program in C to calculate the quotient and remainder and display it on the screen. How to compute quotient and remainder in C ? Output Enter dividend: 8                                      Enter divisor: 3                                   Quotient = 2                                          Remainder = 2