It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology.
Question:how to resolve "cannot convert from int? to int" in c#, compile time error?
Description:I have my controller method taking input parameter int? And one of my inner method taking int as input parameter so I basically wanted to know how to convert int?(Nullable int) to int in C#.
Posted by: Umer khan | Posted on: Apr 29, 2022
Question:IIS URL Rewrite rule for redirect http to https and non-www to www using web.config?
Description:Basically I need two separate IIS URL Rewrite rule for my website, one for redirecting visitors from http to https and the other one for redirecting visitors from non-www to www using web.config Previously I was using the solution which was for working fine for me with http but now I have setup the ssl so now I have tried updating the same code but I am having issues with it.
Posted by: Junaid Aziz | Posted on: Apr 01, 2022
Question:Your connection isn't private Attackers might be trying to steal your information from mydomain.com (for example, passwords, messages, or credit cards)?
Description:I am getting following error while I have just installed new ssl certificates for my domain and now I have verified on other machines the website is working fine on multiple other machines but it is only causing this issue on my machine, initially I thought that might be some sort of cache issue but I have tried this on multiple browsers and tried using the incognito windows as well but still with no luck. Error details: Your connection isn't private Attackers might be trying to steal your information from mydomin.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
Posted by: Junaid Aziz | Posted on: Mar 30, 2022
Question:how to increase default session timeout for asp.net mvc site using web.config?
Description:Currently my site’s session expires a bit quickly while my site contains some huge forms for users to fill out so I wanted to increase the session timeout for the users to get enough time.
Posted by: Khalid Abbas | Posted on: Mar 18, 2022
Question:remove server information from response header using web.config in different versions of IIS?
Description:I have different sites hosted on multiple environments one is using IIS 8 and the other one is using IIS 10 , I wanted to remove the server information from the response header using web.config and currently I am using following URL Rewrite Outbound rule but unfortunately it is not working in any of the environment. <rewrite> <outboundRules rewriteBeforeCache="true"> <rule name="Remove Server header"> <match serverVariable="RESPONSE_Server" pattern=".+" /> <action type="Rewrite" value="" /> </rule> </outboundRules> </rewrite>
Posted by: Khalid Abbas | Posted on: Mar 17, 2022
Question:How to get the time difference between utc time and local time in C#?
Description:I have .net base website which currently have server time zone set to GMT+5, I need to extract that 5 from it dynamically so that once I change the time zone of the server or deploy the same site on another sever with different time zone, I should be able to extract that time difference in that case.
Posted by: Umer khan | Posted on: Sep 11, 2020
Question:Saved user, password appearing in wrong fields even autocomplete=off is not working in mvc5?
Description:I have a mvc view(page)for verify otp where I have three fields for verification code,password and confirm password but in the code field saved email address is appearing, I have tried using autocomplete=off with no luck
Posted by: Khalid Abbas | Posted on: Aug 26, 2020
Question:Easiest way for deploying a asp.net core web api on heroku sever?
Description:I have developed an asp.net core web api with mongodb by the help of following link . Now I need to deploy this web api on heroku server while I already have my mongodb on mongodb cloud and I also have created app on heroku server.
Posted by: Umer khan | Posted on: Jun 08, 2020
Question:Need to create a .net core web api using MongoDB as backend storage database?
Description:I am new to .net core and mongodb as well. I have prior experience of using .net and mssql can anyone suggest me a complete working example, so that I can get an idea about the architecture of such asp.net core api.
Posted by: Umer khan | Posted on: May 22, 2020
Question:How to dynamically generate sitemap xml for an asp.net mvc website?
Description:I have a website developed using asp.net mvc (c#) which contains some static pages and also some dynamic pages i.e where the content is fetched from database and is dynamically increasing as well, So I need to build such a sitemap for which I need to code for once and it take care of the future items that needs to be included in the sitemap.
Posted by: Khalid Abbas | Posted on: Jan 21, 2020