Dec 7, 2022 | Developer |
When a website is redirected to another site, it may be necessary to redirect the home site to a local page instead of the new URL. This can be to show redirect information or just show a logo on the old web site. The redirect info can be written in the .htaccess file...
May 4, 2022 | Developer |
You may need to get the URL from an ASP.NET web page in C#. Here are some examples on how to do this. Example: http://localhost:78000/Sandbox/Default.aspx?q1=1&q2=2 Code: $host = HttpContext.Current.Request.Url.Host; $authority =...
Apr 22, 2021 | Developer |
It’s not that difficult to use Response.Write() in a .NET Framework WebForms class. Classes in a WebForm application can’t use Response.Write() by default. The following steps will allow you to use this function along with other functions such as...
Apr 22, 2021 | Developer |
Remoting in a computer with PowerShell is easier than connecting by VNC or RDC if you just need to do a few admin functions. Enable PowerShell to accept remote connections. Go to machine and run PowerShell as administrator. Run this command: Enable-PSRemoting -Force...
Jan 15, 2021 | Developer |
If you build Laravel applications in Windows 10 using IIS, you will get an error message if you try viewing your web site. This is easily fixed appending web.config. When you setup a website entry in IIS and point it to your Laravel application, you’ll get the...
Jan 7, 2021 | Developer |
You can administer Linux with PowerShell and run scripts with what you already know from using it in Windows. Install PowerShell in Linux Installation is done with one line: sudo snap install powershell –classic Once installed, run powershell from the command...