Recent Posts

3
Comments

Extend ASP.NET MVC for Asynchronous Action by JeffreyZhao

The current version of ASP.NET MVC doesn’t support async actions and that’s just ‘the missing key feature’ I mentioned before. These days I’m preparing for the session in the coming .NET conference in Shanghai (that Jeffrey Richter would also attend) and I think it’s better to release a better solution at that time: straightforward, rather full-featured and light-weighted – the core funtion contains only about 200 lines of codes, which means it maximize the usage of existing framework functions to make the solution more stable, efficient and backward-compatible....
Filed under: , , , ,
5
Comments

Fast Reflection Library by JeffreyZhao

Reflection is one of the most important features of .NET platform. The way of accessing/assigning a property or invoking a method dynamically is widely used by numerous projects. As we all know, invoke-by-reflection is much less efficient than direct access. FastReflectionLib provide the same as part of the refection features like executing method dynamically but give simple and faster implementations. It can be use as the foundation of reflection-based scenarios such as ORM framework....
Filed under: , ,
3
Comments

Build a Simple Control to Refresh UpdatePanel from Client Side by JeffreyZhao

All we should do for the current feature is just to generate JavaScript proxies in the page. Actually I've also build an simple control to help the devs to raise async postbacks from client side, encapsulated the way described in this post....
14
Comments

Refresh the UpdatePanel using JavaScript Code by JeffreyZhao

Lots of customers asked me that how to refresh the UpdatePanel - it actually is to raise an async postback using JavaScript code. The feature is quite important in some scenarios but unfortunately, ASP.NET AJAX does not give any native support, so we have to find work arounds to do that....
8
Comments

LINQ to SQL Extension: Batch Deletion with Lambda Expression by JeffreyZhao

Batch deletion in the O/R Mapping frameworks is always depressing. If we want to make batch deletion with LINQ to SQL, we'll probably execute a SQL command in souce code. To avoid making batch deletion with SQL commands, I build an extension method for LINQ to SQL and now we can use lambda expression to indicate the entities shoud be deleted from the table in database....
13
Comments

Giving rich styles to auto-complete feature using StyledAutoCompleteExtender by JeffreyZhao

Ajax Control Toolkit provides AutoCompleteExtender control build the feature without writing any JavaScript codes. But it's still not so useful in some kinds of scenarios - in my opinion - since the control can only support plain text as the choices. I've extended the AutoCompleteExtender to solve the problem and now we can build rich styled auto-complete features like Google Suggest and email selection in Windows Live Mail....
4
Comments

IE will be stuck when requests too much? Fake the XHR! by JeffreyZhao

When you make a lot of AJAX calls, the browser keeps all the requests in a queue and executes two at a time. So, if you click on something to try to navigate to anthoer page, the browser has to wait for running calls to complete before it can take another one. The bug is quite serious in IE 6 and unfortunately, it still exists in IE 7. Let's build a fake XHR object to solve the bug in Internet Explorer....
Filed under: ,
More Posts