by johanc | Dec 7, 2022 | Web 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...
by johanc | May 4, 2022 | Developer, Framework, Language, Web 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 =...
by johanc | Jun 28, 2021 | Developer, Language
https://4sysops.com/archives/use-powershell-invoke-command-to-run-scripts-on-remote-computers/ Invoke-Command -computer w6delpid -scriptblock { cd \Scripts\Update-Apps; ./Update-Apps }
by johanc | Apr 22, 2021 | Language
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...
by johanc | Apr 22, 2021 | Developer, Language
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...
by johanc | Jan 15, 2021 | Language
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...