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#?
...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?
...
I am trying to use Visual Studio Code instead of Visual Studio for a C# project, but Visual Studio code Intellisense (Autocomplete) suggestion is not working correctly, and doesn't show any suggestions when using Ctrl+Space, shortcut.
What can be the issues? Any suggestions, thanks.
...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:
...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 :
...Suppose, I have a string like "abc, xyz, abc, efd
", now I need to search "abc
" from the comma separated string, how to check if it is inside the string or not.
If possible, I would like to know the solution in Linq, thanks
...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
...
Hello, I am trying to convert string to time in C#, how can I do that, for example, if I have time as "04:05 pm" in string format, how do I get it as time, timespan, or DateTime format in C#?
...