5159 2
how to convert httppostedfilebase to httppostedfile in C#?

How do I convert httppostedfilebase to httppostedfile in C#? Here is my demo code sinppet:

...
Type
Question
5059 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
4882 0
Multithreading in C# (With example)
In this tutorial, I have explained about multithreading in C# with an example & how to use multithreading in C# .NET
Type
Article
4732 1
Error "Maximum request length exceeded" in ASP.NET MVC

When I am trying to upload a pdf file(10 MB) using javascript file upload in my ASP.NET MVC application, I am getting this error as below

Maximum request length exceeded

Here is the image of the error

...

Type
Question
4701 2
DbArithmeticExpression arguments must have a numeric common type

When I am trying to run this command using Entity framework in controller of my project

...
Type
Question


4600 1
Invalid length for a Base-64 char array or string error in C#

When I am trying to decrypt the encrypted string using C#, I am getting an error as below

Invalid-length-for-a-Base-64-char-array-or-string-decryption-c-sharp.png

Here is the HTML Razor anchor link code clicking on which, I am trying to decrypt it

...
Type
Question
4585 1
How to find and extract only number from string in C#?

I have a string with numbers in it, for example here is the string "121 testing your City", now, I would like to extract only "121" from the string, how can I do that using C#?

...
Type
Question
4487 2
Convert string of "dd/MM/yyyy" format into Datetime using C#?

I am using the code below to convert my string which is in the format "dd/MM/yyyy" into datetime

...
Type
Question
4482 0
Useful Visual Studio Shortcuts (comment, remove comment, Collapse code etc )
In this article, I have provided many useful shortcut keyboard keys to use while coding in Visual Studio, for example shortcut to comment a code, collapse a code region etc
Type
Article
4399 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

Page 5 of 16