911 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
asp.net datetime C# utc
890 1
how to catch all error in C# MVC (error handling)

I have a website in C# MVC and I want to add a feature to it, i.e, to save all the errors in database using one function only, I can place try/catch block in every method of the web applications but it would be lengthy process, so is it possible to place a method/code in one place from where I can save each and every error in database??
I have no idea

 

 

...
Type
Question
C# Error handling
872 0
Transfer e-mails from one exchange server to another using EWS Api in C# .NET
Transfer e-mails from one exchange server to another using EWS Api in C# .net MVC
Type
Article
ews C# asp.net MVC
859 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
C# httppostedfilebase to httppostedfile in C#
821 0
MVC List box using jQuery getJSON and JSONResult
This article shows how you can populate MVC Listbox using jQuery and JSONResult.
Type
Article
C# MVC .net

800 2
Compare System Time with database time only (not datetime)

I need to compare a time in a table with the current system time and need to pop up a notification. But how can I compare both? here is my code and DB:

...
Type
Question
c# asp-net compare-time
758 0
Show elapsed time of item using C#, SQL & jQuery (Updating elapsed time of item dynamically using jQuery)
This article shows you, how you to get date difference from database in C# and update elapsed time dynamically using jQuery
Type
Article
asp.net-mvc Razor datetime-difference-in-C# update-elapsed-time-dyanmically
757 1
How to insert C# variable value in between string properly?

Hello, I am trying to pass this string from back-end C# to front end, and want to render it as HTML, when passing this string to the front-end, it doesn't look proper, here is my current C# code.

...
Type
Question
C# string c# insert variables into string c# string inline variable
754 1
Update page without loading it using PartialView

How can I make a controller in ASP.NET MVC do something(here it is inserting data in database) but doesn't load or reload the whole view just the partial view

...

Type
Question
C# MVC ASP.NET
725 1
How to send mail from Domain server in Asp.net c#?

How to send mail from Domain server in Asp.net c#?

...
Type
Question
asp c#

Page 4 of 11