2220 2
how to convert UTC DateTime to local datetime in C#?

I want method which returns the string datetime in target locale format by taking the UTC DateTime and UTC DateTime offset in c#, here is the example code

 

...
Type
Question
2162 1
How to get Current page number of IPagedList Razor View in MVC?

Hi, i would like to get page number of Current page in jQuery or in HTML of the Asp.net MVC PagedList.IPagedList.

...
Type
Question
2117 0
Asynchronous programming in C# and ASP.NET MVC ( With example )
In this article, I have explained about the async-await keyword in C# and how to use asynchronous programming in c#, explained with console application sample.
Type
Article
2078 1
How to show success message in JSON format after saving data using Web-service in C#?

I am trying to save data into database using web service[asmx], after saves successfully data into table I want to show successful message in JSON format 

Here is my code:

...
Type
Question
2037 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


2026 2
JSON.NET Error Self referencing loop detected for type

I am trying to convert List into JSON format using the code below

...
Type
Question
2009 1
how to add image in folder & image path in db in mvc??

How can i add image path in database, while image in the project folder using ASP.NET MVC C#??
As asked on facebook group

...
Type
Question
1949 2
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
1948 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
1927 5
Count and Group by multiple columns in a foreach statement in C#

Hello,

I need to write a foreach statement (I don't have it yet) in which to group by and count the departments.

This is what I have done so far. How can I take the count of each column?

thank you

...
Type
Question

Page 6 of 14