From Webforms to MVC

I’ve been using MVC recently for a while now, both at work and on my own, I am really enjoying it, the implementation proposed by Microsoft is simple and effective and it sticks more to the nature of a web session(request/response) than the Webform model with all it’s page lifecycle, control events and so on.  […]

Data bind simbols legend in Asp.Net

An overview for the code render blocks in Asp.Net : <%#   %>  –  to be used for databinding (es repeater rows etc). <% %>   – code render block, allow execution of inline expressio (es Response.Write(“something”); <%$ %>   – Expression used to bind external parameters. <%= %>  – Renders the content of the block. <%: %>  […]

Fiddler with an site.

Fiddler is an Http monitor and it is very handy when it comes to analyze the traffic from and to your computer or more specifically if you want to list the connections made from and to your website. It can even log and decrypt HTTPS calls. Here’s a guide on how to get it […]

Simple Jquery Ajax paging

Following a great post on Encosia here’s a an ajax powered repeater, that uses JTemplates, with paging and the chance of changing the page size, you can download the sources from here : user authenticated after signout.

The Membership relies on cookies to store the FormAuthentication ticket of a user, this means that we have to remove the cookie in order to signoff from our application. When an user is logged a cookie containing the encrypted ticket is stored on the client machine: public void CreateUserCookie(string username) { //Expiration of the […]

Easy Jquery validation in 4

With 4 comes a new property named ClientIDMode wich allow us to take control over the control ID rendered client side. The property can be applied at: Page level, all the controls within page will maintain the same ID specified by the developer : <%@ Page Title=”” Language=”C#” MasterPageFile=”~/MyMaster.Master” CodeBehind=”NewFeature.aspx.cs” ClientIDMode=”Static”…. Control level , […]

Easy ajax file upload

Here’s a simple way to get file uploading without the widraw of a postback: it is the implementation (with a few changes) of the following jQuery plugin. An image is uploaded and the form submitted. The submitted form is sent to a custom handler (ashx). The image is saved to a website folder and […]

Get ClientID of an control in external js