First Post | BusyBoxDotNet

Hi everyone, my name's Simone and I'm an Italian developer.

This is my first post on DotNetSlackers, although I have been blogging at DevAuthority and in my own language at UgiDotNet - the Italian .NET User Group - for a quite while. In fact I have decided to migrate my blog from DevAuthority since I find DNS simply a great community website.

I will primarily post about ASP.NET, C# and data persistence, the topics I use to work on in my everyday life. I will import some of the posts I made in my old blog here, so that I won't have to start again from scratch!

You may be wondering what BusyBoxDotNet is. It is an ASP.NET web control library I have developed and released open source in the last months. It can be used to show a message to website users during long processing tasks, informing them that something is actually happening.

The project website is http://busybox.sourceforge.net.

There you can find even a list of the projects I have worked on and which I released for free.

Any feedback is welcome!

Published 03 July 2006 08:19 PM by simoneb
Filed under: ,

Comments

# vic said on 27 July, 2006 04:17 PM
Simone,
I wish to try your busyboxdotnet control. However, when attempting to browse my test aspx page (containing the control) with internet explorer using visual studio 2005 I get the following error:

Microsoft JScript runtime error: 'BBDN' is undefined.

I have confirmed the reference to the ICSharpCode.SharpZipLib.dll, as well as the httphandler declaration in the web.config.  Also, I am able to browse the page successfully with Firefox (it looks great!-nice job).  

What am I doing wrong?

Thanks for your help...
# simoneb said on 27 July, 2006 07:17 PM
Hi Vic, try disabling GZip compression via its property.
# vic said on 28 July, 2006 08:22 AM
Thanks, Vic.  That did the trick. You've created some very nice controls.
# simoneb said on 28 July, 2006 08:33 AM
Thanks Vic, I like doing that!
# Balaji said on 06 January, 2007 02:44 PM
Hi Simone, GZip compression is disabled and the control works fine on Windows 2000 Server / IIS 5. When I copied the code to Windows 2003 / IIS 6 I get the script error 'BBDN' is undefined.
# simoneb said on 06 January, 2007 03:02 PM

I'm very sorry, I can't test it on anything else than Windows XP / IIS5, so I can't tell you why you get this behavior from the server. The only thing you can do I guess is set the IncludeScriptsInPage property to true.

# Geminium said on 08 March, 2007 12:15 AM
Hi Simoneb your busybox is a very great control, but when i use it with atlas updatepanel, it doesn't work. The control stay open on the page. Have you a solution plesae ? Thanks.
# simoneb said on 08 March, 2007 04:24 AM

At the moment I'm working on a new release which will solve this issue, stay tuned.

# Andres said on 10 May, 2007 01:40 PM
Hi Simoneb , do you have some example using busibox with ajax ? thanks a lot and your control is very cool.
# simoneb said on 11 May, 2007 08:15 AM

It doesn't work well in conjunction with ASP.NET Ajax yet, you'll have to wait for a new release.

# North said on 06 June, 2007 10:24 AM
Hello, Your control is a lifesaver, especially after switching from the old style IFRAME Javascript BusyBox with the gears spinning. I have a two-parter.. Reading above at what Geminium wrote about update panels. I too ran into this problem. The busybox wouldn't remove itself on a postback call, because the updatepanel was just being refreshed, not the whole page. Basically to resolve, I added two Busybox controls to my page, One with an OnLoad setting, the other with a OnPostback setting with a default time-out. Sometimes the page renders to fast, or two slow for the busybox timeout to close, but doing some testing with average search requests can give you a decent estimate at what timeout value to use. One question I have now. I've got AJAX loaded for their pop-up controls, etc. on a Gridview. On a GridView, I've got a OnPageIndexChanged function to handle a custom search page switching environment, and since I'm using an UpdatePanel for the GridView, it does not reload the page entirely. I have other controls using the UpdatePanel in various ways for different data gathering to build the custom queries, I have different timeout times for different controls (for example, a pop-up calendar is fast, vs. a PageIndexChanged event). So using a PostBack busybox with a 10 sec timeout (rough page switch load times) causes the calendar control processing to hold a busybox for 10 seconds, when it finishes much earlier. I tried changing the timeout value for the different controls as they get function calls, but that didn't work. Anyhow, I started getting into the custom Busybox that I can force to call. My question is, can I force a call to the busybox as a static statement, that isn't attached to a Control Action. I tried this: GridView.Attributes.Add("OnPageIndexChanged", BusyBox3.ShowFunctionCall) to show the box when a user picks a new page of data, but this doesnt fire the busybox control. My guess is that OnPageIndexChanged isn't a normal javascript event handler, and thus can't be used this way to handle the page switching. As a work-around I've got the busybox to fire on any "OnClick" event to the Gridview, but this isn't ideal, as a user click anywhere on the gridview fires a 10 second wait box, with no processing. Is there any way to force the busybox display to show as a seperate line of code, so I can fire it in my OnPageIndexChanged Function first. I've tried just adding string test = BusyBox1.ShowFunctionCall(); to the start of the function, with no luck. This might be something you've already got marked down for a new release, but I'm just curious of the control can be forced other then attaching it to a Control via OnClick, etc. This control is fantastic. I appreciate all your help and hard work. Ciao
# simoneb said on 07 June, 2007 07:12 AM

Hi North,

thanks for describing your issues. I know I should definitely make a new release. However just give me some time to investigate your problem, I will respond you.

# simoneb said on 15 June, 2007 09:33 PM

Hi North, sorry for taking so much to reply.

I've made some progress on the new version of the library, and you can find it on the svn repository. The behavior with ASP.NET Ajax is supported correctly now, even if it's still in early stage and many features are still missing.

I'm no longer supporting the old version since I've rebuilt the whole stuff from scratch and the API, as well as the internals, have completely changed.

# Graham Armstrong said on 27 June, 2007 04:59 AM
Great control - new changes work almost perfectly with update panels, except for LinkButtons.
# Legoman said on 30 July, 2007 04:55 AM
Nice control. Thank's for the great job. But I have the same problem as Balaji : the control works fine on XP SP2/IIS5.1, but doesn't work on Server 2003/IIS 6.0. Any idea ? The error is "BBDN is undefined" and the following Javascript code miss in the generated source page : var BBDN=function(){return{util:{},core:{}};}(); ... //end BBDN.core.BusyBox
# Legoman said on 30 July, 2007 05:09 AM
Forget what I said. I have forgotten the httpHandlers in the webconfig. Mea culpa.
# Tom said on 02 August, 2007 10:22 AM
Where can I find the dll that suports Ajax? Thanks!
# simoneb said on 09 August, 2007 05:38 PM

Hi Tom, its not ready yet, the code is on the subversion repository however.

# Munish said on 17 August, 2007 01:16 PM
hi simone great work man . i am looking for it for a long time . i am getting one problem i set page on load property and overlay to false but i cant see loading box when page is loaded what must be reason behiind it ?? Thanx in advance
# simoneb said on 19 August, 2007 07:33 AM

Munish, please fill in a bug report on sourceforge so I can give it a look.

# Deepack said on 21 September, 2007 04:57 PM

Can this version of BusyBox work with framework 1.1?

# simoneb said on 22 September, 2007 06:39 AM

Hi Deepack, on project's homepage at Sourceforge you can find version 0.2.0 which was the last release built on ASP.NET 1.1

# Yiannis said on 25 September, 2007 09:38 AM

Hi simoneb,

I also wanted to say what a greate job you did.

My project executes quite a lot on the OnInit method and it actually spends some time there. Now is there a way to load the Busybox during that time instead of waitinig until it reaches the onLoad method.

Thanks

# simoneb said on 28 September, 2007 11:36 PM

The OnLoad value isn't related to the Page Load stage of ASP.NET, I'm sorry but I don't get what you mean.

# fredarwin said on 08 October, 2007 10:33 AM

Nice work simoneb!,

just one question, i am using the busybox (using: OnleavingPage) in a masterpage that contain a treeview menu to go to another pages and busybox work fine, but, when i execute a javascript on the page that is in the contentplaceholder with ScriptManager.RegisterStartupScript the busybox appear again and hold freeze.

How can avoid this problem?

thanks

# Yiannis said on 10 October, 2007 07:24 AM

Sorry if i wasnt clear,

Actually what you said really helps cose i was under the impression that the Busybox was executing on the OnLoad stage of ASP.NET.

To Explain better, during the varius stages of the ASP.NET execution, i.e OnInit, OnLoad i have quite some code executing which takes some time. Now i cant get  the busybox to appear during these stages.I want to show the Busybox during the OnLoad stage of the page.

Is this possible. Can you direct me to a possible code example that i can customly call the busybox

Thanks in advance

# simoneb said on 11 October, 2007 06:19 PM

@fredarwin, please post a support request on http://busybox.sourceforge.net

# simoneb said on 11 October, 2007 06:21 PM

@Yannis, when set to onload, the box appears as soon as the age starts rendering on the client. This means that all the page lifecycle on the server has already been executed. Don't want to sound rude, but if you don't understand ASP.NET you should better learn it before hanging out with custom controls.

# Miguel Palizada said on 17 October, 2007 11:44 AM

Hi, does BusyBox work with ASP.NET Ajax Update Panel?

# simoneb said on 17 October, 2007 04:19 PM

Sorry, it still doesn't work in conjunction with update panels.

# David Gonzales said on 23 October, 2007 04:34 PM

Hi, great control. However, does the wait gif animate? I am using FadingCircles.gif and TurningCircles.gif and the image shows up but it does not animate.

Thanks.

David.

# simoneb said on 23 October, 2007 04:54 PM

Hi David, thanks. Unfortunately the control doesn't work well in IE7, and the gifs don't animate. At the moment I cn only suggest you to find a different implementation, like those supplied by the Ajax Control Toolkit.

# Zoestt said on 26 October, 2007 08:23 AM

I am actually trying to disable a button when clicked along with displaying the busybox. When I add the attibute onclick;this.disable; to the button control. It works but the busybox is not displayed. I am doing it this way to avoid multiple clicks on the button in the event the browser does not support BusyBox. Ayway to do this ?

# simoneb said on 05 November, 2007 08:56 PM

You need to play with Javascript a bit, the BusyBox control doesn't provide it out of the box.

The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

This site

Search

Go

This Blog

News

     

    CS2
    Checkout CS2, my academic project about indexing and searching personal source code with Lucene.Net.

    Windows Developer Power Tools

Syndication

Sponsors

  • MaximumASP
  • Packet Sniffer
    Custom Essay
  • audio conference call