First, You need to add below name spaces to read Excel file in OLEDB
Every Question..What does it mean? Why is this? How it works?
Microsoft .Net (pronounced dot (.) net) may be a package element that runs on the Windows software package.
.Net provides tools and libraries that change developers to form Windows package a lot of quicker and easier.
Microsoft describes it as:".Net is that the Microsoft internet Service strategy to attach data, people,
system and devices through software".I'm Choulla Naresh..!
Tuesday, September 8, 2020
Reading Excel From C# using OLEDB Connection
Monday, September 7, 2020
Solid Principles in C#
The SOLID Design Principles and Design Patterns play an important role in achieving all of the above key points.
The SOLID Design Principles are the design principles that help us to solve most of the software design problems. These design principles provide us with multiple ways to move the tightly coupled code between the software components which makes the software designs more understandable, flexible, and maintainable.
S stands for the Single Responsibility Principle which is also known as SRP.
O stands for the Open-Closed Principle which is also known as OSP.
L stands for the Liskov Substitution Principle which is also known as LSP.
I stand for the Interface Segregation Principle which is also known as ISP.
D stands for Dependency Inversion Principle which is also known as DIP.
Wednesday, September 2, 2020
Why we need Partial Views in ASP.NET MVC Application?
When we need a common part of the user interface at multiple pages in a web application then we develop a partial view, hence the partial view is a regular view that can be used multiple times in an application and has the file extension .cshtml.
Sometimes we also use a partial view to divide a web page into small parts such as header, footer, and menu on Layout. Other examples are comments in blogging site, shipping and billing address in the invoice in e-commerce site, etc.
If you are coming from asp.net web-forms background, then you can realize that partial views in MVC are similar to user controls in asp.net web forms.
Tuesday, September 1, 2020
use of "New" keyword
Using a new keyword for re-implementing the methods in the child class is optional and if used will give information to hiding.