Posts

Showing posts from November, 2023

Donate

Visual Studio 2022 Create A New GitHub Repository Not Authenticating GitHub Account (Re-enter your credentials)

Image
Hello, I encountered this issue lately wherein after I updated my Visual Studio 2022 IDE to it's latest version, I am unable to autheticate my GitHub account when creating a new GitHub repository. It just keeps showing Re-enter your credentials even if I have successfully logged-in to my GitHub account. After several unsuccessful attempts of re-entering my GitHub credentials, I finally solved it by removing and adding again my GitHub account in Visual Studio and then logged-in again. After that the Owner dropdown shows that I was successfully authenticated by GitHub. Cheers!

GitHub Language Bar Not Showing On Newly Uploaded C# Project Repository

Image
Good day! I published a C# Console project to my GitHub repository few days ago and when checking back on the repository, I noticed that the programming language bar or indicator is missing. Only the updated status is shown as seen from the screenshot below. I did some research and have'nt found a specific answer to my problem. What I did was I opened up my project and noticed that the access modifier of the Program class is internal. internal class Program { static void Main( string [] args) { Console.ReadLine(); } } So, I tried changing the internal access modifier of the class to public and re-published it again. Voila! The language bar or indicator is now visible. public class Program { public static void Main( string [] args) { Console.ReadLine(); } } Cheers!

React Todo List Application With Create React App

Image
Hello, Here's a basic todo list application written in React.js and Create React App which is the output of the course React Project for Beginners: Building a Todo List App from Skillshare. Since I do have some background with Vue.js, I decided to try React.js thru trainings and will develop some database-driven applications with ASP.NET Core soon. Source Code: Todo List App Project Cheers!

ASP.NET Core 101 Contoso Crafts Website Upgrade To .NET 8

Image
Hello, After the release of .NET 8, I tried upgrading some of the sample projects that I have written in .NET Core 3.x to .NET 8. These were tutorials or video series from Microsoft Learn website that taught students the basics of .NET Core. The only major change that I have for this project is to fix a minor issue in the Blazor component which is Bootstrap modal not showing on first button click. The solution I found in the forums is to add a mouseover event to the button which is explained First click modal doesn't open in .NET 5 Blazor server side bool unlock; void start( string productId) { if (!unlock) { selectProductId = productId; selectedProduct = ProductService.GetProducts().First(x => x.Id == productId); unlock = true ; } } See below the complete Blazor component with the modal click issue. @using Microsoft.AspNetCore.Components.Web @using ContosoCrafts.WebSite.Models @using ContosoCrafts.WebSite.Services @inject Json

How To Apply Checkbox Check All To WPF DataGrid Using MVVM Pattern In VB.NET

Image
Good day Gents! In this post, I will demonstrate the VB.NET version on how to create a WPF DataGrid application that has a check all checkbox behavior for selecting all rows using the MVVM Pattern. First is we need to create a .NET WPF Visual Basic project that targets the .NET framework with a project structure similar to the screenshot below. App.config Update your App.config's connection string with your local database connection. <configuration> <startup> <supportedRuntime version= "v4.0" sku= ".NETFramework,Version=v4.5.2" /> </startup> <connectionStrings> <add name= "products" connectionString= "data source=.;Initial Catalog=TestDatabase;Trusted_Connection=True;" providerName= "System.Data.SqlClient" /> </connectionStrings> </configuration> DBUtil.vb The DBUtil class will retrieve records from the database and u

How To Apply Checkbox Check All To WPF DataGrid Using MVVM Pattern

Image
Good day Gents! In this post, I will demonstrate on how to create a WPF DataGrid application that has a check all checkbox behavior for selecting all rows using the MVVM Pattern. First is we need to create a .NET Core WPF project that targets the .NET 7 framework with a project structure similar to the screenshot below. App.config Update your App.config's connection string with your local database connection. <configuration> <connectionStrings> <add name= "products" connectionString= "data source=.;Initial Catalog=TestDatabase;Integrated Security=true;" providerName= "System.Data.SqlClient" /> </connectionStrings> </configuration> DBUtil.cs The DBUtil class will retrieve records from the database and update the discontinued field of a particular product. public static class DBUtil { public static DataTable GetProduct() { DataSet ds = new DataSet(); string q

Donate