4689 0
Remove All WhiteSpace from string in C# (Multiple Methods)
In this article, I have provided working example to remove all whitespace from string or trim spaces between characters in C#.
Type
Article
4657 1
Remove duplicates from datatable in C#

Hello

based on this

https://www.technical-recipes.com/2017/obtaining-combinations-of-k-elements-from-n-in-c/#comment-52343

I create my data and I store them in a datatable.

Now I have another datatable which I fill it from my database.

I need to remove the duplicates from the first datatable and fill a datagridview.

This is what I have so far

...
Type
Question
4622 1
Generic type array get and set in C# , how to make it work?

getting error While executing the code below in C#

...
Type
Question
4530 2
How to subtract total of each row in C# matrix from constant number and sum the result?

Hi, I would like to know how to subtract total of each row in C# matrix from a magic constant number(example : 15) and sum the result, for example, here is my current matrix

...
Type
Question
4517 1
GoogleWebAuthorizationBroker.AuthorizeAsync is not working on Server

GoogleWebAuthorizationBroker.AuthorizeAsync is not working on localhost but not working in server

...
Type
Question


4509 1
What is Console.Log Equivalent in C#?

I am working in .NET Core Web-application/API, while working, I want to print some variables output in "Output" Windows of Visual Studio, like in javascript we use Console.Log() what is similar way of using Console log in C# Web application or Console Application? Thanks

...
Type
Question
4425 1
Extract String between two string in C#?

Hello, I want simple and easy solution to extract or get string between two strings in C#, so for example I have string "Hello World, I am .NET developer", I need output as "I am" only.

How can i do it in simple and fast way? Thanks

...
Type
Question
4414 2
Unable to find package 'Abp.Owin' at source.

I am getting this error while trying to Install Abp.AspNetCore package using Nuget Package Manager console

...
Type
Question
4413 2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Type
Question
4306 0
Add values in C# array (Multiple ways)
In this article, I have mentioned how we can push or add new values in an array using C# Code in a multiple ways.
Type
Article

Page 17 of 24