18 people following this project (follow)

For latest news and updates, visit my blog http://omaralzabir.com/

UFrame combines the goodness of UpdatePanel and IFRAME in a cross browser and cross platform solution. It allows a DIV to behave like an IFRAME loading content from any page either static or dynamic. It can load pages having both inline and external Javascript and CSS, just like an IFRAME. But unlike IFRAME, it loads the content within the main document and you can put any number of UFrame on your page without slowing down the browser. It supports ASP.NET postback nicely and you can have DataGrid or any other complex ASP.NET control within a UFrame. UFrame works perfectly with ASP.NET MVC making it an replacement for UpdatePanel. Best of all, UFrame is implemented 100% in Javascript making it a cross platform solution. As a result, you can use UFrame on ASP.NET, PHP, JSP or any other platform.

<div class="UFrame" id="UFrame1" src="SomePage.aspx?ID=UFrame1" >
  <p>This should get replaced with content from Somepage.aspx</p>
</div>


Response from SomePage.aspx is rendered directly inside the UFrame. Here you see two UFrame's are used to load the same SomePage.aspx as if they are loaded inside IFRAME. Another UFrame is used to load AnotherPage.aspx that shows photos from Flickr.

UFrame.jpg

See it in action!

You can test UFrame from:

http://labs.omaralzabir.com/UFrame2005 - Visual Studio 2005 version, .NET 2.0 implementation showing regular ASP.NET 2.0 controls work as usual
http://labs.omaralzabir.com/UFrameMvc - Visual Studio 2008 version shows ASP.NET MVC works fine making UFrame an ultimate replacement for UpdatePanel

Read the article about UFrame

I have published an article about UFrame at CodeProject:

http://www.codeproject.com/KB/aspnet/uframe.aspx

The article explains in details how the UFrame is built. Be prepared for a big dose of Javascript code.

If you find UFrame or the article useful, please vote for me at CodeProject.

 Omar AL Zabir on hard to find tech stuffs News Feed 
Wednesday, April 04, 2012  |  From Omar AL Zabir on hard to find tech stuffs

When you use WCF services from Javascript, you have to generate the Javascript proxies by hitting the Service.svc/js. If you have five WCF services, then it means five javascripts to download. As browsers download javascripts synchronously, one after another, it adds latency to page load and slows down page rendering performance. Moreover, the same WCF [...]

Monday, March 12, 2012  |  From Omar AL Zabir on hard to find tech stuffs

Here’s an implementation of MemoryStream like buffer manager where one thread can write and many threads can read simultaneously. Each reading thread gets its own reader and can read from the shared stream on its own without blocking write operation or other parallel read operations. It supports blocking Read call so that reader threads can [...]

Friday, March 02, 2012  |  From Omar AL Zabir on hard to find tech stuffs

When you are reading data from a binary stream, like NetworkStream or FileStream and you need to read both binary chunks as well as read one text line at a time, you are on your own as BinaryReader nor Stream supports ReadLine. You can use StreamReader to do ReadLine, but it does not allow you [...]

Saturday, February 04, 2012  |  From Omar AL Zabir on hard to find tech stuffs

Here’s the recent presentation made on LIDNUG on scaling ASP.NET websites from thousands to millions of users. Scaling ASP.NET websites from thousands to millions of users by Omar AL Zabir Here’re the slides. Scaling asp.net websites to millions of users

Thursday, December 29, 2011  |  From Omar AL Zabir on hard to find tech stuffs

Internet is full of flash ads nowadays that make page load slower, render slower and consumes more CPU, thus power. If you can browse without having any flash ads or in fact any ads loaded and without any of the tracking scripts – you can browse much faster, scroll through pages much smoother and have [...]

Thursday, December 22, 2011  |  From Omar AL Zabir on hard to find tech stuffs

Now you no longer pay me for Dropthings license instead you donate the money to a charity and I will give you the license. In case you don’t know what Dropthings is, it is a Web 2.0 Personalizable Dashboard framework that you can use to build Web 2.0 personalizable websites and enterprise dashboards. It is [...]

Saturday, October 15, 2011  |  From Omar AL Zabir on hard to find tech stuffs

Microsoft Research arranged MVP Open Day 2011 at Cambridge on Oct 24, 2011. Beautiful university, made me feel like giving up my job and going back to study. Amazing research work going there, very thought provoking. The session on DNA programming was out of the world. The most surprising thing I learnt that a 10cm [...]

Saturday, October 15, 2011  |  From Omar AL Zabir on hard to find tech stuffs

ASP.NET generates some large cookies if you are using ASP.NET membership provider. Especially if you are using the Anonymous provider, then a typical site will send the following cookies to every request when a user is logged in, whether the request is to a dynamic page or to any static resource: .DBANON=w3kYczsH8Wvzs6MgryS4JYEF0N-8ZR6aLRSTU9KwVaGaydD6WwUHD7X9tN8vBgjgzKf3r3SJHusTYFjU85y [...]

Sunday, July 31, 2011  |  From Omar AL Zabir on hard to find tech stuffs

At 9 AM in the morning, during the peak traffic for your business, you get an emergency call that the website you built is no more. It’s not responding to any request. Some people can see some page after waiting for long time but most can’t. So, you think it must be some slow query [...]

Tuesday, July 26, 2011  |  From Omar AL Zabir on hard to find tech stuffs

A truly RESTful API means you have unique URLs to uniquely represent entities and collections, and there is no verb/action on the URL. You cannot have URL like /Customers/Create or /Customers/John/Update, /Customers/John/Delete where the action is part of the URL that represents the entity. An URL can only represent the state of an entity, like [...]

Sunday, May 29, 2011  |  From Omar AL Zabir on hard to find tech stuffs

When you update javascript or css files that are already cached in users’ browsers, most likely many users won’t get that for some time because of the caching at the browser or intermediate proxy(s). You need some way to force browser and proxy(s) to download latest files. There’s no way to do that effectively across [...]

Sunday, May 22, 2011  |  From Omar AL Zabir on hard to find tech stuffs

WCF service and client do not support HTTP Compression out of the box in .NET 3.5 even if you turn on Dynamic Compression in IIS 6 or 7. It has been fixed in .NET 4 but those who are stuck with .NET 3.5 for foreseeable future, you are out of luck.  First of all, it’s [...]

Saturday, February 26, 2011  |  From Omar AL Zabir on hard to find tech stuffs

WCF service and client do not support HTTP Compression out of the box in .NET 3.5 even if you turn on Dynamic Compression in IIS 6 or 7. It has been fixed in .NET 4 but those who are stuck with .NET 3.5 for foreseeable future, you are out of luck.  First of all, it’s [...]

Wednesday, February 23, 2011  |  From Omar AL Zabir on hard to find tech stuffs

When you deploy incremental changes on a production server, which is running and live all the time, you some times see error messages like “Compiler Error Message: The Type ‘XXX’ exists in both…”. Sometimes you find Application_Start event not firing although you shipped a new class, dll or web.config. Sometimes you find static variables not [...]

Sunday, December 05, 2010  |  From Omar AL Zabir on hard to find tech stuffs

There are some simple configuration changes that you can make on machine.config and IIS to give your web applications significant performance boost. These are simple harmless changes but makes a lot of difference in terms of scalability. By tweaking system.net changes, you can increase the number of parallel calls that can be made from the [...]

Sunday, December 05, 2010  |  From Omar AL Zabir on hard to find tech stuffs

When you add a WCF service reference to a Silverlight Application, it generates the ServiceReference.ClientConfig file where the URL of the WCF endpoint is defined. When you add the WCF service reference on a development computer, the endpoint URL is on localhost. But when you deploy the Silverlight client and the WCF service on a [...]

Tuesday, November 23, 2010  |  From Omar AL Zabir on hard to find tech stuffs

This is a temporary post that was not deleted. Please delete this manually. (f1f7062e-8280-4f16-80dd-94b141f1e215 – 3bfe001a-32de-4114-a6b4-4005b770f6d7)

Saturday, November 13, 2010  |  From Omar AL Zabir on hard to find tech stuffs

This is a temporary post that was not deleted. Please delete this manually. (c21040a1-0db2-4871-837c-d1954b9ea163 – 3bfe001a-32de-4114-a6b4-4005b770f6d7)

Saturday, October 02, 2010  |  From Omar AL Zabir on hard to find tech stuffs

 
Caching frequently used objects, that are expensive to fetch from the source, makes application perform faster under high load. It helps scale an application under concurrent requests. But some hard to notice mistakes can lead the application to suffer under high load, let alone making it perform better, especially when you are using distributed caching [...]

Wednesday, September 29, 2010  |  From Omar AL Zabir on hard to find tech stuffs

Dropthings is now available on Microsoft/Web. You can now install it using the Web Platform Installer. I will soon write an article how to make an installer that can install a ASP.NET website, a SQL Server database, setup web.config files, setup directory permissions (eg App_Data) etc. It wasn’t straightforward and I learnt some best practices [...]

 Omar AL Zabir on hard to find tech stuffs News Feed 

Last edited Apr 22 at 7:34 PM by oazabir, version 9