How do I remove unnecessary HTTP Headers in IIS and ASP.NET application simply, please provide me step by step tutorial for improving security in this area?
I have already googled this and found few solutions but I need an easy tutorial, which can guide me to remove all unnecessary HTTP Headers from Response.
Any link or step by step guide will work.
...Hello, I am trying to save file in C#, using file.SaveAs(Path)
, and getting the error "Illegal Characters in Path" as shown below
...
I have a requirement to get latitude and longitude from address using C# or Javascript, any solution will work. So, how can I get them using address?
Basically, I need to convert the address into Lat / Long and show it in Google maps in ASP.NET MVC web-application, so javascript solution will also work.
Note: I don't have lat/long, just address of the user.
...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
...
I am working on a C# project in which user can change datetime column time zone using its profile page. For example, when I log in into the system, I can change default time zone (PST) to Indian standard time(IST) after doing all the column of date time should show time-related to IST time zone.
Basically, we are saving all the datetime value in the database as PST time zone, now based on user-selected time zone I need to show datetime.
So I would like to convert my PST datetime (8/16/2016 12:56 PM) to IST or any other timezone selected by user dynamically using C#.
How can I convert datetime from PST to any time zone using C#?
...I am trying to work on Audio file and have seconds as int
in C#, but I would like to convert seconds into hh:mm:ss ( hours, minutes and seconds) format, so How can I do it easily in C#?
For example: 20 Seconds = 00:00:20 in hour,minutes,seconds format.
...