I’ve been using Visual Studio 2013 Express to make a C# website that uses SOAP to request services from another company. Everything was working fine, until one day I suddenly started getting HTTP 500 errors. Naturally the service provider said … Continue reading →
Ok. I won’t drag this out too much since there’s FAR too much to comment on. But my aim was to create a web-based upload facility that is compatible with old browsers (such as IE8) and has the ability to … Continue reading →
This is an example of how we can perform Rijndael encryption and decryption in C# and Powershell. It’s worth mentioning that: – salt must be 8 bytes minimum – initVector must be 16 bytes minimum The examples below use Cipher … Continue reading →
This post provides an example of getting the public key token of an assembly using PowerShell. When I need to add definitions to the web.config of my ASP.Net projects I often use this Powershell line to get the PublicKeyToken, Culture … Continue reading →
This post describes integrating Lync status into an ASP.Net Gridview. I had a bit of a nightmare trying to achieve this so that it worked on IE8 all the way up to IE11 . First I had it working on … Continue reading →
This is a quick example of how to create a custom debug log file in an ASP.Net class which you can use in your website. If the file doesn’t exist, it creates it. It names the file today’s date. And … Continue reading →
If you just want to read your Session State from an ASHX or HttpHandler, you need to implement IReadOnlySessionState. If you want to write to your Session State, you must implement IRequiresSessionState. Note that you will also need use the System.Web.SessionState namespace. This post … Continue reading →
This post describes the process I use to strip out style attributes in HTML code using a regular expression. My website is presenting data from a field in SharePoint. This field uses HTML and CSS style attributes to construct the … Continue reading →
I have a GridView with hyperlinks in some of the columns, which open up a new page in a FancyBox. FancyBox is a pretty cool lightbox alternative. Anyway, in the FancyBox page content you can make changes which will affect values in … Continue reading →
We can detect if an ASP.Net form is valid from Javascript by using the following: if (typeof (Page_ClientValidate) == ‘function’) { Page_ClientValidate(); } if (Page_IsValid) { //form valid }