by djc | May 4, 2022 | ASP.NET, C#, Coder, Frameworks, Programming Languages, Web Development
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 djc | Apr 22, 2021 | Programming Languages
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 djc | Apr 22, 2021 | PowerShell
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 djc | Jan 15, 2021 | Programming Languages
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...
by djc | Jan 7, 2021 | Programming Languages
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...
by djc | Dec 12, 2019 | Programming Languages
Quick and easy fix for MSBuild errors. This error had me stumped for a while. The first thing I did was to update the Microsoft.Net.Compilers through NuGet, which didn’t fix the problem. If you double click on the error message, it will open...