279 2
C# error "Type 'string' does not contain a definition for 'equals' and no extension method 'equals' of type 'string' could be found."

Hi please I'm converting 12-hour AM/PM format, to military 24-hour time format using C# Console app.

Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock.

My code is that :

...
Type
Question
c# missing assembly
275 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
271 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
247 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
241 0
How can I put the values of database in array in ASP.NET MVC C# ?

How can I put the values of database in array in ASP.NET MVC C# ? 

...
Type
Question
C# ASP.NET MVC

237 0
How can I put the values of database in array in ASP.NET MVC C# ?

How can I put the values of database in array in ASP.NET MVC C# ? 

...
Type
Question
C# ASP.NET MVC
229 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
217 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
190 0
Create XML document using C# (Console Application example)
In this article, I have explained, how you can create XML document in C# using Console application, it should work in ASP.NET Web-Forms or MVC, as C# code remains same.
Type
Article
C# create xml file c# create xml document c# xml
172 2
Course to learn about matrix (two dimensional array) in C# with exercises and solution

Hi,please someone can give me link to learn about matrix (two dimensional array) in C# with exercises and solution. Thanks in advance.

...
Type
Question
c# c# multidimensional array matrix

Page 10 of 11