With browsers moving forward with marking all HTTP sites as insecure by default, a lot of sites are now being upgraded to https. If your site is hosted on IIS that is by itsself a simple procedure: Pick the website or virtual directory you want to redirect Click HTTP Redirect in the management console Check […]
Month: February 2020
DevExpress DateEdit (Date Picker) model binding in MVC
This is the absolute minimum you need to use model binding with the DevExpress date picker control. The important part is that the name setting on the control must be the same as the field name you use to store the picked value in. ViewModel using System; namespace DXWebSample.ViewModels { public class DemoViewModel { public […]
Autosizing screen stops on VmWare Workstation for your linux guest
Sympton:Your display no longer autosizes for your Linux guest, running under VmWare workstation. Cause: This seems to be caused by a race condition where the open-vm-tools try to activate before the graphic environment is available. Resolution: Edit the configuration file for open-vm-tools, by running nano sudo /etc/systemd/system/multi-user.target.wants/open-vm-tools.service And add the following lines in the UNIT […]
Passing data to an SqlDataSource on a user control from code
This code snippet demonstrates how to programmaticaly set a parameter on a user control, and bind that paramter to an SqlDataSource that has been configured at design time. The key to this functioning is a method in the usercontrol that sets a private field on the user control, and triggerin the DataBind() event on the […]
Reduce an image with transparant background to the minimum required canvas
This static method reduces an image with a transparant background to the minimal canvas needed. This code is part of my graphics processing library (PDrawing) and is hereby donated to the public domain. This process is best performed in a pre-process or background processing way, since it may take several seconds to process a large […]
ASPxImageSlider – Resize slider for different devices
This code sample shows how to resize the ASPxImageSlider control for different devices and screen resizing. (thing rotating your tablet). The slider exposes a client side ID (ClientInstanceName = “imageSlider”) which can be hooked into with a little javascript. While this solves the basic problem, of having the slider react to different screen sizes, you […]
Fixing backscatter on Exchange 2010
The default installation of exchange 2010 on small organizations will use the hub transport server to handle the smtp mail. The problem with this setup is twofold, Exchange 2010 STILL uses stone gae defaults for NDR messages, and for unknown recipients by accepting any mail and then sending non deliverable reports. This opens up your […]
GPO – Switch of the option to store password for rdp sessions
Storing the password for RDP sessions is a bane for any administrator that manages remote users, Here is how to disable the option to store the rdp password thgrough a group policy object. – User Configuration + Administrative Templates + Windows Components + Remote Desktop Services Select Remote desktop connection client Enable the policy named: […]
GPO – Check effective group policy settings
Report on the active group policy settings on the machine, in a nicely html formatted way gpresult.exe /h report.html
GPO – Allow or disallow UDP for Remote Desktop sessions
Recent versions of the rdp protocol (since v8) are capable of using TCP and/or UDP for connections. USP can be an improvement on low quality networks, but it can also greatly hamper other UDP based services on busy networks. I have also see it cause problems in connecting and disconnecting when using confused routers or […]