5001 2
How to delete a file, after checking if it exists or not using C#?

I would like to know, how can I delete a file, after checking if it exists on the hard disk, if yes, then delete it, using C# in asp.net?

Thanks

...
Type
Question
4959 0
Convert List to Dictionary in C# (Various ways)
In this article, I have mentioned various possible methods to convert list to dictionary in C#
Type
Article
4919 1
how to get the Url of page which called Application_Error in ASP.NET

How can i get the url from where the error was originated and Application_Error was called inAsp.NET MVC C#, i have followed this link https://qawithexperts.com/questions/13/how-to-catch-all-error-in-c-mvc-error-handling , with the help of which i was able to catch all type of errors(404,500,any other) in MVC web-application but i am not able to get the original requested ur, because of which Application_Error was called.

How can i get the url, any idea?

 

...
Type
Question
4876 1
How to check if File exists in C#? (Inside folder)

I am trying to download a file from a url, and there are many files, but I don't want to download files that already exists in my drive. So I want to implement to check if file already exists in a folder using C#?

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


4717 0
Create GUID in C# (Various examples)
In this article, I have mentioned what is GUID in C# and how we can create GUID in C# with various examples
Type
Article
4596 0
Convert CSV to JSON in C#
In this article, I have mentioned how we can convert CSV file into JSON using C# with an console application example.
Type
Article
4565 2
Error : Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'

Hi,I am using C# 3-D arrays program and getting error "Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'", how I can resolve this error my current code is as below :

...
Type
Question
4556 0
Best C# programming course available online (Free OR paid)
In this article, I have provided the list of c# programming course or c# programming tutorial links, using which you learn C# online for free or by buying course available on Udemy.
Type
Article
4511 0
Format Code in Visual Studio (With Indentation)
In this article, I have mentioned shortcut to format code in Visual Studio, which you can use format any document in Visual studio.
Type
Article

Page 15 of 24