DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   
Stats
Total Count : 66
Snippets Submit Snippet  
 
API language runtime version in Azure Static Web Apps
Ashok Nalam
This snippet shows how to configure the API language runtime version in Azure Static Web Apps using staticwebapp.config.json file.
By: Ashok Nalam | 07 Mar 2022 | Microsoft Azure | Views: 1332 | Comments: 3 | Tags:azure  azure static web apps 
How do you reverse a number in C# for loop?
Ashok Nalam
In this snippet, we will write a program that reverses an array using for loop in c#.
By: Ashok Nalam | 18 Jan 2021 | C# | Views: 2432 | Comments: 2 | Tags:array  C#  for-loop  reverse 
Read application settings in Azure Functions (.NET Core)
Ashok Nalam
We define configuration based key values in application settings files. In Azure functions, you can define your settings in local.settings.json file. In this snippet, we will see how to read the settings.
By: Ashok Nalam | 16 Sep 2020 | Microsoft Azure | Views: 11751 | Comments: 0 | Tags:azure  azure app settings  azure functions 
Create Azure Function App in Premium plan using Azure CLI
Ashok Nalam
In this post, we will see how to create an Azure function App using Azure CLI commands(az functionapp create) in elastic premium plan EP1, EP2 and EP3.
By: Ashok Nalam | 14 Sep 2020 | Microsoft Azure | Views: 6392 | Comments: 0 | Tags:azure  azure cli  azure functions 
Create Azure Function App using Azure CLI command(az functionapp create)
Ashok Nalam
We can create Azure function apps using code, Azure Portal or Azure CLI. In this post, we will see how to create an Azure function App using Azure CLI commands(az functionapp create).
By: Ashok Nalam | 10 Sep 2020 | Microsoft Azure | Views: 11036 | Comments: 0 | Tags:azure  azure cli  azure functions 
List Azure physical locations, display names and regional names in the current subscription
Ashok Nalam
In order to see the list of supported Azure regions for your current subscription you can use “az account list-locations” command from https://shell.azure.com. The command shows displayName, geographyGroup, pairedRegion, physicalLocation, name, regionalDisplayName and subscriptionId.
By: Ashok Nalam | 18 Aug 2020 | Microsoft Azure | Views: 27819 | Comments: 1 | Tags:azure  azure cli  azure shell 
Reverse array without using in-built function in C#.NET
Ashok Nalam
In this snippet we will write a program which reverses an array with out using any in-built C#.NET function. Basically it shifts all elements from an array from left side to right side.
By: Ashok Nalam | 20 Dec 2019 | C# | Views: 8047 | Comments: 2 | Tags:array  C#  reverse  sorting 
Resolve "Redundant Hostnames" issue using ASP.NET
Ashok Nalam
This snippet show how to resolve "Redundant Hostnames" issue using ASP.NET.
By: Ashok Nalam | 19 Sep 2015 | ASP.NET | Views: 7604 | Comments: 0 | Tags:ASP.NET  error  global.asax 
C#.NET Program to read a 4-digit integer and output the sum of its digits
Ashok Nalam
In this snippet we will write C#.NET program to read a four digit integer and output the sum of its digits. Example: If user enters number as 1234 then the output will be 1+2+3+4=9.
By: Ashok Nalam | 16 Mar 2015 | C# | Views: 52366 | Comments: 2 | Tags:.NET  number 
C#.NET string palindrome program without using string functions
Ashok Nalam
In this snippet we will write a program to check whether the given string is palindrome string or not with out using any built-in string function.
By: Ashok Nalam | 15 Mar 2015 | C# | Views: 17526 | Comments: 2 | Tags:.NET  palindrome  string 
Programatically save an image/resource from a Web URL using C# and VB.NET
Ashok Nalam
The snippet shows how to copy image from web URL to local machine using WebClient.DownloadFile method with C# and VB.NET examples.
By: Ashok Nalam | 17 Apr 2014 | C# | Views: 92456 | Comments: 0 | Tags:.NET  ASP.NET  C#  VB.NET 
Program to remove duplicate values from a generic list using C# and VB.NET
Ashok Nalam
This snippet shows how to remove duplicate values from a generic list.
By: Ashok Nalam | 14 Apr 2014 | LINQ | Views: 11383 | Comments: 0 | Tags:C#  enumerable  generics  linq  list  VB.NET 
.NET program to convert array of integers into comma separated string
Ashok Nalam
This program shows how to convert array of Integers into comma separated string using C#.NET and VB.NET examples.
By: Ashok Nalam | 11 Apr 2014 | VB.NET | Views: 8342 | Comments: 3 | Tags:array  C#  string  VB.NET 
.NET - Save image from one folder to another folder
Ashok Nalam
Sometimes we need to copy an image from one folder to another folder. The snippet shows how to copy file using System.IO.File.Copy for ASP.NET, Console and Windows Application.
By: Ashok Nalam | 24 Mar 2014 | ASP.NET | Views: 10692 | Comments: 0 | Tags:ASP.NET  C#  file 
C#.NET : DateTime.Now Month output format
Ashok Nalam
The snippet shows how to print double digit number for DateTime.Now.Month and also different .ToString() formats supported by month.
By: Ashok Nalam | 11 Mar 2014 | C# | Views: 92347 | Comments: 2 | Tags:.NET  datetime  number 
.NET program to convert list string to comma separated string
Ashok Nalam
The snippet shows how to convert list of string values to comma separated string values in quicker way using String.Join method.
By: Ashok Nalam | 29 Jan 2014 | C# | Views: 11087 | Comments: 0 | Tags:list  string 
WPF Multiline Textbox Example
Ashok Nalam
This snippet shows how to create WPF multiline textbox
By: Ashok Nalam | 17 Jan 2014 | WPF | Views: 17541 | Comments: 2 | Tags:textbox 
Program to print rectangle with stars using C#.NET
Ashok Nalam
The Program to prints rectangle with stars using C#.NET.
By: Ashok Nalam | 23 Dec 2013 | C# | Views: 22910 | Comments: 0 | Tags:.NET  number 
C#.NET program to find the sum of odd-positioned digits and even-positioned digits of a given number
Ashok Nalam
The program finds the sum of odd-positioned digits and even-positioned digits of a given number using C#.NET example.
By: Ashok Nalam | 19 Dec 2013 | C# | Views: 12959 | Comments: 0 | Tags:.NET  number 
write a .NET program to find the sum of odd-positioned digits and even-positioned digits of a given number
Ashok Nalam
The program finds the sum of odd-positioned digits and even-positioned digits of a given number using C#.NET example.
By: Ashok Nalam | 18 Dec 2013 | C# | Views: 5657 | Comments: 0 | Tags:.NET  number 
1234
 
 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys