422 1
Error : Wrong number of indexes '2' inside [], expected '1' Compilation failed in C# 2-D array

Hi, I am trying to run the below C# code for martix, but getting error

...
Type
Question
C# multi-dimensional array
419 1
how to convert UTC time to Local using C#?

Hello, I would like to know how can I convert UTC datetime into local (user's pc) datetime in asp.net MVC razor page using C#?

I thought .ToLocalTime() should work, but I am not getting correct result.

...
Type
Question
C# UTC to Local datetime
418 2
How to Add Spaces before Capital letter in a string using C#?

In my MVC project, I am getting dropdown text data as "NoEffect", "FadeOut" etc, now I would like to show user as "No Effect", "Fade out" etc, show how can I achieve it using C#?

Any method would work, using regex or without using regex.

...
Type
Question
C# string put space before capital char
396 1
How can I call base class constructor from derived class in C#?

I would like to know, suppose if I have inherited a Class A in Class B then How can I call the constructor of the base class(Class A) in C#?

...
Type
Question
C# Call base constructor
391 1
How to gray out data which is before start time in list view of asp.net Web forms?

I am showing the list of restaurants in the listview, in this list, I have restaurant's start time and end time, So I want o to disable those restaurant's which is listed on the list, before start time , so that's user can't click on them or view them, in other words, gray out the restaurant's which isn't opened yet

Here is my current code:- restaurants.aspx

 

...
Type
Question
listview asp.net web-forms gray-out-data

389 2
Show correct message based on entering URL in C#

If user entering url across multiple country wise, if url exists message should come like : facebook.com exists in DE,IN. Here is the current code

...
Type
Question
asp.net c#
373 0
Serialization & Deserialization in C# With Console application example
In this article, I have explained the concept of Serialization & Deserialization Class object in C# with an working console application example.
Type
Article
C# serializable c# c# serialize object serialization in c# example
349 2
How to Switch ORM in Repository Pattern (C# .NET MVC)?

I have been searching on it how to switch ORM using repository pattern, and i was not able to find "examples/sample codes" of it so i can study with that. 

I believe my search keywords were wrong (ex. How to switch from EF to ADO.NET using Repo pattern and etc), thats why I can not find an article that talks about it.

Lets say we implement repository pattern with Entity Framework.

Is it repo pattern tightly coupled in Entity Framework? or

Do I need to create another Data Access Layer that talks for ADO.NET/or DAPPER/ Nhibernate?(for example)

Thanks in Advance.

...
Type
Question
ASP.NET C# Repository Pattern
348 1
How to get latitude and longitude from address using C# or Javascript?

I have a requirement to get latitude and longitude from address using C# or Javascript, any solution will work. So, how can I get them using address?

Basically, I need to convert the address into Lat / Long and show it in Google maps in ASP.NET MVC web-application, so javascript solution will also work.

Note: I don't have lat/long, just address of the user.

...
Type
Question
C# Javascript google-maps-api lat-long-from-address-google-maps
314 2
How to redirect from http to https in ASP.NET Core?

Hello, I would like to know, how can force user to redirect from http(not secured) page to https(secured page) in asp.net core?

I am using asp.net core boilerplate template.

...
Type
Question
ASP.NET asp.net core

Page 10 of 12