4492 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
4465 0
Serialize List to JSON in C#
In this article, I have mentioned how we can Serialize List to JSON using C# with console application example.
Type
Article
4381 1
Visual Studio Code Intellisense (autocomplete) not working

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.

...
Type
Question
4333 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
4161 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


4107 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
4053 1
How to search a string from comma separated string in C#?

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

...
Type
Question
4022 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
4014 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
3890 0
MVC List box using jQuery getJSON and JSONResult
This article shows how you can populate MVC Listbox using jQuery and JSONResult.
Type
Article

Page 15 of 24