Quantcast
Channel: C# – The Code Hubs
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Delete multiple rows (records) in Entity Framework using ASP.Net MVC

I’ll demonstrate how to delete multiple rows (records) in ASP.Net MVC using Entity Framework in this article. Database I used the following table, Customers, which has the following schema. An...

View Article


Image may be NSFW.
Clik here to view.

Difference between bool and Boolean in C# .Net

I’ll answer a frequently asked question about the distinction between the bool and Boolean data types in C#.Net in this little essay. The following question now arises: 1. What distinguishes bool from...

View Article

Image may be NSFW.
Clik here to view.

Bind DataTable (DataSet) to WebGrid in ASP.Net Core MVC

In this article, I’ll go over how to link a DataTable (DataSet) to a WebGrid in ASP.Net Core MVC using an example. ADO.Net will be utilised to populate the DataTable (DataSet) from Database Tables...

View Article

Image may be NSFW.
Clik here to view.

Difference between ExecuteReader ExecuteScalar and ExecuteNonQuery

The ExecuteNonQuery, ExecuteScalar, and ExecuteReader functions of the SqlCommand class in ADO.Net will all be explained in this article. ExecuteNonQuery, ExecuteScalar, and ExecuteReader are the three...

View Article

Image may be NSFW.
Clik here to view.

Static Files (Images, CSS and JS files) in ASP.Net Core

I’ll demonstrate how to use static files (images, CSS, and JS files) with ASP.Net Core in this article using an example. Static assets, including image files, CSS files, and JavaScript JS files, do not...

View Article


Difference Between DataReader, DataSet, DataAdapter and DataTable in C#

Four key parts of ADO.NET are DataReader, DataSet, DataAdapter, and DataTable. I’ll describe the distinctions between a DataReader, DataSet, DataAdapter, and DataTable in this blog post using C# code...

View Article

Calling Select SQL Server Stored Procedures using ADO.Net

Here, I’ll go over how to use ADO.Net to invoke stored procedures that return data. Additionally, I’ll discuss how to link the outcomes to data-driven controls like GridView or DataGrid. Connection...

View Article

Image may be NSFW.
Clik here to view.

Implement Cascading (Dependent) ListBox in ASP.Net

In this post, I’ll demonstrate how to use C# to construct a cascading (dependent) ListBox from a database in ASP.Net. Database I used the following three tables: Cities, States, and Countries, using...

View Article


Parameterized Queries ADO.Net

Parameterized Queries: Queries that use SQL parameters to pass values are known as parameterized queries. Benefits Parameterized Queries’ main advantage is its ability to safeguard databases from SQL...

View Article


Image may be NSFW.
Clik here to view.

Automatically send Birthday email using C#

In this article, I’ll demonstrate how to use C# to automatically send birthday emails every day at a specific time. A Windows Service will be established in order to automatically send Birthday emails...

View Article
Browsing all 10 articles
Browse latest View live