DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   
Stats
Total Count : 19
Resources Publish New Article  
 
calling Javascript validation function before button click event in ASP.NET - onclientclick before onclick
Ashok Nalam
In this snippet we will see how to call a java script client side validation function before server side method execution.
By: Ashok Nalam | 13 Dec 2012 | ASP.NET | Views: 81721 | Comments: 0 | Tags:button  C#  javascript  onclick  onclientclick 
Constructors in .NET
Ashok Nalam
In this article we will see about constructors in .net. and types of constructors with sample example.
By: Ashok Nalam | 01 Jan 2013 | VB.NET | Views: 7824 | Comments: 2 | Tags:C#  constructor  oops 
Display “No Records Found” text in gridview when there is no record
Ashok Nalam
In this snippet we will see how to show “No Records Found” text in gridview when there is no record with grid view headers.
By: Ashok Nalam | 03 Jan 2013 | ASP.NET | Views: 84742 | Comments: 1 | Tags:C#  gridview 
"Caller Information" feature in Visual studio 2012 (C# & VB.NET)
Ashok Nalam
This article describes about new feature in Visual studio 2012 called as "Caller Information" and its attributes(CallerFilePathAttribute,CallerLineNumberAttribute and CallerMemberNameAttribute) with the example using C#.NET and VB.NET.
By: Ashok Nalam | 30 May 2013 | Visual Studio | Views: 21248 | Comments: 0 | Tags:attributes  C#  VB.NET 
VB.NET/C# program to convert Fahrenheit to Celsius and Celsius to Fahrenheit
Ashok Nalam
This program(VB.NET/C# versions) converts temperature from Fahrenheit to Celsius and Celsius to Fahrenheit.
By: Ashok Nalam | 28 Jun 2013 | VB.NET | Views: 83191 | Comments: 2 | Tags:.NET  C#  conversion  difference  number 
How to add new/multi line text in WPF MessageBox
Ashok Nalam
By: Ashok Nalam | 24 Jan 2014 | WPF | Views: 17674 | Comments: 0 | Tags:.NET  C#  xaml 
Add css class dynamically from code-behind file for HTML/ASP.NET controls
Ashok Nalam
By: Ashok Nalam | 17 Feb 2014 | ASP.NET | Views: 33211 | Comments: 3 | Tags:C#  class  css 
Bing Code Search for C#.NET extension for Visual Studio
Ashok Nalam
Bing Code Search for C#.NET searches snippets from community sites like MSDN, StackOverflow, Dotnetperls and CSharp411 and allows us to insert code in editor with out leaving Visual Studio.
By: Ashok Nalam | 21 Feb 2014 | Visual Studio | Views: 5846 | Comments: 0 | Tags:.NET  C#  extensions  visual studio 2013 
.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: 9044 | Comments: 2 | Tags:ASP.NET  C#  file 
Programmatically minimize or maximize a WPF/WinForm window
Ashok Nalam
By: Ashok Nalam | 11 Apr 2014 | WPF | Views: 55658 | Comments: 2 | Tags:.NET  C#  window  winforms  wpf 
.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: 6994 | Comments: 0 | Tags:array  C#  string  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: 10535 | Comments: 0 | Tags:C#  enumerable  generics  linq  list  VB.NET 
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: 88805 | Comments: 2 | Tags:.NET  ASP.NET  C#  VB.NET 
C# 6.0 : Use static class reference in "Using" statement
Ashok Nalam
By: Ashok Nalam | 25 Nov 2014 | C# | Views: 7862 | Comments: 2 | Tags:.NET  C# 6.0  static  using  visual studio 2015 
.NET CoreCLR is Open Sourced
Ashok Nalam
.NET Core RunTime(CoreCLR) as an open source project on GitHub..NET Core is part of ASP.NET 5 and subset of .NET framework which includes includes RyuJIT, the .NET GC, native interop and many other .NET runtime components.
By: Ashok Nalam | 08 Feb 2015 | .NET Framework | Views: 33690 | Comments: 0 | Tags:C#  GitHub 
Dotnet codeformatter released to GitHub
Ashok Nalam
Microsoft has released codeformatter on GitHub. This tool uses Roslyn which can be used to format C# project code automatically as per guidelines. With the source code format we will have better readability and maintainability of a code.
By: Ashok Nalam | 11 Feb 2015 | Visual Studio | Views: 9783 | Comments: 0 | Tags:C#  GitHub  open source  visual studio 2015 
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: 6105 | Comments: 2 | Tags:array  C#  reverse  sorting 
What is the difference between CLR and DLR in C#?
Abhishek Choubey

 What is DLR?
  • DLR is a runtime environment that adds a set of services for dynamic languages to the CLR.
  • DLR makes it easier to develop dynamic languages to run on .net framework and give them .net interoperability.
  • DLR introduces dynamic objects in C#
  • DLR helps you create libraries that support dynamic operations
  • Examples of languages developed by using DLR is IronPython,IronRuby etc.
What is CLR?
  • As part of the Microsoft  .NET Framework, the Common Language Runtime (CLR) is the programming (Virtual Machine component) that manages the execution of programs written in any language that uses the .NET Framework, for example C#, VB.Net, F# and so on.
  • Programmers write code in any language, including VB.Net, C# and F# when they compile their programs into an intermediate form of code called CLI in a portable execution file (PE) that can be managed and used by the CLR and then the CLR converts  it into machine code to be will executed by the processor.
  • The information about the environment, programming language, its version and what class libraries will be used for this code are stored in the form of metadata with the compiler that tells the CLR how to handle this code.
  • The CLR allows an instance of a class written in one language to call a method of the class written in another language.
By: Abhishek Choubey | 27 Nov 2020 | C# | Views: 1173 | Comments: 0 | Tags:.NET  C# 
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: 1623 | Comments: 0 | Tags:array  C#  for-loop  reverse