If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager
1 tool and 10 posts tagged with “ASP.NET”
If OPTIONS preflight request getting 404 and URLScan enabled on your hosting machine, check out this article.
Here I am listing some of the interview questions I have faced when applied for .NET developer/Software engineer roles.
If your site is allowed to be IFRAMEd by another site and thus would be susceptible to click-jacking. This can be prevented by setting X-Frame-Options header or CSP. Setting X-Frame-Options explained in this article.
Restrict access to your website using IIS IP security
Use the provided rewrite rule to redirect HTTPS requests to HTTP.
Use IIS Rewrite rule to redirect all HTTP request to HTTPS.
Use IIS rewrite rule to redirect (301) all www requests to non-www.
In one simple line of code, we can check whether the given string is Arabic or not, in C#.
When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.