Click here to Skip to main content
Click here to Skip to main content
Go to top

NicsBar Progress (Loading) Control Bar

, 23 Nov 2004
Rate this:
Please Sign up or sign in to vote.
NicsBar progress (loading) control bar.

What does the code do?

Displays a loading / progress page for any ASP.NET / C# application.

How do I integrate it with my existing code or how do I use it?

Developers can add this to a tab on the toolbox to drop into a form at anytime!!

  1. Right click, Add tab "MyControls" perhaps.
  2. Right click, Customize Toolbox..
  3. Select ".NET framework Components" tab.
  4. Browse to the location of the MyWebControl assembly and select it.
  5. Select "NicsBar" control, press OK.

Volia!!

If there is a similar article on CodeProject already, then how does this one differ?

This one has been created from several different sources, although none of them seemed to solve the problem I was having with the following:

  • This works for Netscape 4.x+, IE5.
  • It can be customized to support other browsers which have not been supported in its current state.
  • ViewState information is not lost between page loads.
  • Loads before any other data in the application.

Why would someone want to use this version?

For the same reason I wrote it, the reasons above.

Is there some aspect of the code that is of particular interest that perhaps should be covered in the article?

Only the part where it uses the event handling for the ASP.NET page. Although it's simple enough.

Are there any particular environments the code is restricted to? (Windows 2000 or above, .NET SP1 etc)

None, just works for ASP.NET / C#.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Nick4333
Web Developer
United States United States
No Biography provided

Comments and Discussions

 
QuestionNot work in Safari Pinmemberemanlee10-Mar-09 4:55 
Questiongif image is getting hanged wen page load's PinmemberDennis Kashi27-Oct-08 1:39 
GeneralFonts change Pinmemberjohnpaulcastro11-Oct-07 12:59 
GeneralCool! Pinmembermatheu5517-May-07 8:00 
GeneralSession ID Problem. PinmemberImparatorvolkan2-Apr-07 12:03 
GeneralRe: Session ID Problem. Pinmemberjonelster6-Sep-07 3:47 
GeneralResponse,Redirect doesn't work :( PinmemberAblomaz21-Mar-07 13:13 
GeneralRe: Response,Redirect doesn't work :( Pinmembersankarmca14-Aug-07 0:12 
GeneralSuper! PinmemberguZzy92FS18-Nov-06 16:14 
GeneralWorks Perfect PinmemberJoebloggs481726-Oct-06 0:25 
GeneralVB Translation Pinmembersarast13-Sep-06 11:21 
GeneralRe: VB Translation PinmemberMember 41442081-Oct-10 5:24 
QuestionTitle Does not set for first Time Pinmembersachet sharma4-Aug-06 20:12 
QuestionHow to control the text that is displayed Pinmemberljscottiii24-Feb-06 10:22 
This is a great control. Very nice work!
 
I modified the code just a bit so you can change the text being displayed. For instance instead of "Page Loading. Please Wait" One of my pages says "Sending Email Reports..." and another says "Uploading file..."
 
Here is how. From within the control itself:
  Change the Text Property to:
    public string Text {
      get {
      return text;
    }
      set {
        text = value;
      }
    }
 
  Change Init1
    protected void Init1(Object sender, System.EventArgs e) {
      WebControl tmp=sender as WebControl;
      loadHTML2 = loadHTML2.Replace("Page Loading. Please wait...",text);
      loadHTML2=string.Format(loadHTML2,sourceImage);
      tmp.Page.Response.Write(loadHTML1+loadHTML2);
      tmp.Page.Response.Flush();
    }
 
Now recompile the control and copy the dll to your web project. If you had your web project open when you copied the dll, you might need to close it and re-open to see the change of the text property from read-only to read-write.
 
Now when you add the item to your web page, change the text displayed by setting the Text property!
 
This offers a bit more flexibility.
 
Jay Scott
 
-- modified at 16:32 Friday 24th February, 2006
GeneralNice nice code.... PinmemberMBetioli17-Feb-06 2:56 
GeneralNot Understanding Pinmember2bchivalrous3-Aug-05 7:11 
GeneralWithin a userControl PinmemberFrosty1_4me2-Mar-05 7:04 
GeneralDoesn't seem to work with SmartNav in IE PinmemberDaveDeath23-Feb-05 5:08 
GeneralThis may be exactly what I was looking for... PinsussMike Schaub17-Dec-04 10:02 
GeneralRe: This may be exactly what I was looking for... Pinmemberhorcas30-Dec-04 6:39 
QuestionRe: This may be exactly what I was looking for... Pinmembermrmp311-Dec-06 9:36 
GeneralRe: Cant get tool to work PinmemberNick Hermans24-Nov-04 3:23 
GeneralGreat control PinmemberDotNetDemon23-Nov-04 0:17 
GeneralRe: Great control PinmemberNick Hermans24-Nov-04 3:20 
GeneralDownload updated source PinmemberNick Hermans16-Nov-04 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140905.1 | Last Updated 24 Nov 2004
Article Copyright 2004 by Nick4333
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid