Showing all posts tagged: 'ASP.NET'

A 24-post collection

Using HttpHandlers to return XML in ASP.NET

Have you ever had the need to server static XML from your website? Sure you did! If the XML is totally static, then it's pretty simple. You just supply the link to the file and you set your web server to serve and cache your XML data. However, things are a bit trickier if your XML is a serialized object that needs to be served at runtime. In ASP.NET there is a way to do this in an efficient way using an HTTPHandler. In this post, I will show you how to create such a handler and how to …[read more]


Resolving Kestrel issues for ASP.NET 5 on Mac OSx

Running ASP.NET 5 on a Mac is so refreshing! Is it? Really? Well, yes and no. Yes, if you like experimenting and fiddling with the file system, using experimental software and enjoy troubleshooting a lot. It is not a great experience if you expect things to work straight out of the box and you don't want to mess around with the setup and environment configuration. This post is about a couple of this things that I stumbled across a few times while developing and testing ASP.NET on my Mac. Kestrel,in case you haven't used it before, is …[read more]


Server-Side Data in jQuery DataTables with ASP.NET

The jQuery DataTables plugin is my default option whenever I need to display tabular data on a webpage. This is a great jQuery - not to be confused with this jQuery - tool that can be applied to a standard, well-formed HTML table and takes care of all the paging, sorting etc that you may need to apply to any tabular data. It is a very versatile and easy-to-use plugin that can be easily extended with a number of readily available add-ons. It also supports theming, as you would expect from any established jQuery tool. With all of these bells …[read more]


A brief introduction to MiniBlog

Ah, the joys of blogging. Blogging in our industry is vital and, thankfully, these days there are many tools and frameworks that can help us with this task: Wordpress Ghost Github Pages Blogger The above are some of the most known ones. Most of them can host your blog for you ("on the cloud") and some allow you to deploy the blog engine to your own servers. My preference is to own both the engine and content. The important thing, however, is that blogging is easy! On the other hand, as easy as it is to get started, things get …[read more]


How to use JQuery dialog as Confirm dialog in ASP.NET

Another ASP.NET WebForms post. It seems I'm "stuck" with WebForms for now, so lets make the best out of it. Today's issue: how many times did you have to code some confirmation logic on your website to ensure that your users are (doubly/triply) sure about the action they are about to perform? A typical example is prompting the user to confirm that they are sure about deleting a record. In typical/boring javascript world, you would do something like this: HTML <asp:Button runat="server" ID="btnDelete" Text="Delete" OnClick="BtnUDelete_Click" OnClientClick="if ( ! deleteConfirmation()) return false; …[read more]