StreamReader

StreamReader class In my previous article we have have seen how to read from text file using File class and how to write into text file using StreamWriter class. In this article we will see how to read from text file using StreamReader  class. Using Statements: It is recommended...
Continue reading

Understanding StreamWriter class

We have seen how to write in text file using File class in our previous article. Today we will see how to use StreamWriter class to write in a text file. This class is very helpful to write text data into files. This class contains method to write...
Continue reading

How to Read from a Text File using C#

In previous article we have see “How to write to a Text File using C#“, Now in this article we are going to learn how can we read text file using C#. In most of the application either we are writing something to text file or reading from...
Continue reading

How to write to a Text File using C#

In this article we will see how to write text in txt file using C#. In our dot-net application frequently we required to either read from text file or write to text file. We will see how to read from txt file later. Here we will focus on...
Continue reading

Understand the value type and reference type

In previous article we have seen difference between primary key and unique key. Today we will see the difference between value type and reference type. Let first see what are the value types and what are the reference types. What are Value Types? Variables which stores direct data...
Continue reading

Difference between WebForm and MVC in Asp.Net

Asp.net framework is a small part of .Net framework for building and running web applications. We can design and develop a web application or website using either Asp.Net MVC for Web Forms. In this article we will see some important difference between Asp.Net Web Forms and Asp.Net MVC....
Continue reading

Get outer html of html element using Jquery

<div class='block'> <p class='paragraph'> This is the text inside the second element </p> </div> for an example if we consider above code block and write a code like below var htmlString = $("#paragraph").html(); then htmString can have a value “This is the text inside the second element” only...
Continue reading

Javascript setTimeout() Function with Examples

setTimeout() Function setTimeout() is a native JavaScript function. Which is allow us to call a specific JavaScript function or piece of code at specified interval or delay (on milliseconds). It might be useful when you want to display a message or a popup after user has browse the...
Continue reading

About Coding Sharp

Coding sharp is a blog where you can find the authors personal experience, tutorials, examples, code samples, resources related to C#, Asp.Net, Linq, Ajax, MVC, Entity Framework, SQL Server, jQuery, Visual Studio.

Pages