Click here to Skip to main content
Click here to Skip to main content

Flyout - A great way to save space on your webpage

By , 4 Dec 2007
 

Screenshot - microsoftquicklinks.gif

Introduction

This article describes the ASP.NET Flyout control and its application. Flyout can make your webpage contain more information, and look neater and more stylish. The above image shows how Flyout is used as QuickLinks in the Microsoft MSDN website. The Flyout control that I would like to introduce here is from obout inc. This Flyout is feature-rich and total free: free to download, free to use, free to distribute.

List of features

Below are some key features:

  • Able to wrap any content.
  • Able to customize opening position.
  • Provided with four types of effect.
  • Design-time preview support.
  • Easy to use: it takes less than three minutes to get it to work.

How to add Flyout to your page

Adding the Flyout control to your page is very simple:

  • Copy obout_Flyout_NET.dll to the Bin folder of your project.
  • Register Flyout on your page:
  • <%@ Register TagPrefix="obout" Namespace="OboutInc.Flyout2" 
                 Assembly="obout_Flyout2_NET" %>

Using the Flyout control

Below is some sample code to start with:

<asp:Button runat="server" ID="myButton" Text="My Button"/>

<obout:Flyout runat="server" ID="myFlyout" AttachTo="myButton">
    <div style="background-color:lightblue;width:200px;height:100px;">
        Flyout
    </div>
</obout:Flyout>

By putting the ID of the Button into the AttachTo property of Flyout, you have attached Flyout to a Button.

And here is the result of our work:

Flyout open as default

When the mouse hovers the button, a fly-out opens at the bottom center of the button.

Customize the open position of Flyout

Flyout can be open not only at the bottom of the target object, but also at other relative positions. Four properties which will control the position of the Flyout are Position, Align, RelativeLeft, and RelativeTop.

How can I can make Flyout attach to a button like this?

Flyout open on the right of object

Pretty easy, here comes the code:

<asp:Button runat="server" ID="myButton" Text="My Button"/>

<obout:Flyout ... Position="MIDDLE_RIGHT" Align="TOP" ...>
    <div style="background-color:lightblue;width:200px;height:100px;">
        Flyout
    </div>
</obout:Flyout>

If you want your fly-out to have a custom position, like this:

Flyout open with custom position

Do this:

<asp:Button runat="server" ID="myButton" Text="My Button"/>

<obout:Flyout ... Position="ABSOLUTE" RelativeLeft="50" RelativeTop="5" ...>
    <div style="background-color:lightblue;width:200px;height:100px;">
        Flyout
    </div>
</obout:Flyout>

To know more about other positioning styles, you may have a look at Flyout positions and alignment.

Customize OpenEvent

The default behavior of Flyout is top open on cursor hover over the target element. This behavior can be changed. For example, to open on Click event:

<input type="button" id="myButton" value="My Button"/>

<obout:Flyout ... OpenEvent="ONCLICK" ...>
     <div style="background-color:lightblue;width:200px;height:100px;">
        Flyout
    </div>
</obout:Flyout>

OpenEvent property has a number of pre-defined events for you to choose.

Customize opening effect

Flyout provides four types of effects:

  • FlyingEffect: The default effect of Flyout.
  • FadingEffect: The fly-out will appear and dissolve gradually.
  • SlidingEffect: The fly-out will appear, slide, then stop.
  • NoneEffect: The fly-out will just appear without any effect

It is possible to set multiple effects on the same Flyout. For example, if you want Flyout to open by sliding from the left and fading at the same time:

<input type="button" id="myButton" value="My Button"/>

<obout:Flyout ... SlidingEffect="LEFT" FadingEffect="true" ...>
     <div style="background-color:lightblue;width:100px;height:50px;">
        Flyout
    </div>
</obout:Flyout> 

Here is the result of sliding and fading.

Cool applications

  • Initially hidden quick links or site map, feedback forms, extra information about a product, tooltips. View.
  • Flyout can be used as a menu. View
  • Flyout can be used with a grid to show more information. View.
  • Anything else.

Summary

In this article, I have shown you how to use the Flyout control from obout. This component will help you save a lot of layout space on your web pages and provide extra information to your users. I hope that you find it useful. In the zip file provided along with this article, there are many examples of Flyout that you can start with. You may get the latest version of Flyout anytime from the obout Suite. All the best.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ned Thompson
Web Developer
Unknown
Member
I am Ned Thompson, 26 years old. I am working at obout inc as web component developer. I am really good at ASP.NET and Javascript.
 

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionWhere is the source codememberduraid wadie3 Oct '10 - 23:06 
Can you please attach the source code.
 
Thanks
GeneralFlyout panel out of positionmemberdhunted200012 Jan '10 - 20:57 
i put a flout inside a listview but it was out of position and does not follow the item attached to.. it only happens when the items exceeds the page height..
GeneralFlyout and MS IE 8.0memberDon Koller14 Jul '09 - 15:40 
My app did not work with IE 8.0 -- uses only Flyout in an itemTemplate for GridView, ASP.NET 2.0
Are there issues with IE 8? Works in all other browsers tested (FireFox, Safari, MS IE 7).
QuestionRe: Flyout and MS IE 8.0memberunexpectedunexpected14 Mar '11 - 18:36 
plz if you've solved the problem, tell me what should I do to handle all browsers?
 
(just using google Chrome it has acceptable show!!! )
GeneralGreat control but a bug when inheritingmemberFlorian DREVET17 Oct '08 - 0:11 
Hi,
 
Thank you for your great free flyout WebControl.
 
A problem occurs when creating a WebControl inheriting from your Flyout "Failed to initialize [flyTest]"...
 
Can you solve this in a future version ?
 
Best regards,
 
Florian
General[Message Removed]memberMojtaba Vali20 May '08 - 21:26 
Spam message removed
QuestionHow to Attach Obout Flyout Menu to SharePoint Services WSS 3.0 Top Nav Link Bar?memberKen1234511 Mar '08 - 4:20 
I would like to attach the Obout Flyout Menu to the Top Nav Link Bar in Windows SharePoint Services WSS 3.0. This way I can create a basic drop-down menu with the Obout's Flyout Menu.
 
As far as I can see, there is no ID's on the SharePoint Services Top Nav Link Bar to attach the Obout Flyout Menu to.
 
Do you know a way that I can do this is SharePoint Services WSS 3.0 using the Obout Flyout menu?
 
Your help would be greatly appreciated. I seem to be stuck on this one.
 
Thanks,
Ken
Confused | :confused:
GeneralRe: How to Attach Obout Flyout Menu to SharePoint Services WSS 3.0 Top Nav Link Bar?memberNed Thompson12 Mar '08 - 0:45 
You may try to cover the Top Nav Link Bar with a div with id: [div id="myNavLink"] ..(NavLink)..[/div]
Now you can specify the AttachTo="myNavLink" for Flyout.
 
--
Regards,
Ned
Developer - www.obout.com
GeneralRe: How to Attach Obout Flyout Menu to SharePoint Services WSS 3.0 Top Nav Link Bar?memberKen1234512 Mar '08 - 11:03 
Ned,
Thanks for getting back to me with your suggestion!!!
You saved my life! I think I was getting ready to jump.
I was getting tunnel vision looking at this problem too long, and probably spooked trying to learn ASP.Net, even though I've worked with html for years. I must have wasted hours over this one & yet you came up with a simple solution, which should have been obvious to me. Maybe in a week's time I'll stop banging my head.
 
Thanks very much!
Ken
Smile | :)
Ps.: that Flyout menu is a peach!
GeneralRe: How to Attach Obout Flyout Menu to SharePoint Services WSS 3.0 Top Nav Link Bar?memberitsaranga8 Sep '09 - 8:09 
Hi,
 
I'm trying to use OBOUT calendar dll to my SharePoint webpart created using web user controls.
 
But I couldn't see content of the web part, I tried by updating web.config file and copy to server's GAC, but couldn't get the result.
 
Please help............
 
Thank You !!!
QuestionDoes it work on .net 1.1 ?membermarijus519 Dec '07 - 23:12 
Hi Ned,
does it work on .net 1.1 ?
 
Thanks
 
Marius
AnswerRe: Does it work on .net 1.1 ?memberNed Thompson1 Jan '08 - 17:33 
Hi,
 
This is version for NET2.0 so it will not be able to run in NET11.
However we do keep an old version of Flyout which is written for NET1.1.
If you are interested, please contact us at support@obout.com, we will send you that old version.
 
-----
Best Regards,
Ned
Developer
OBOUT INC - www.obout.com
General[Message Removed]memberMojtaba Vali3 Dec '07 - 19:10 
Spam message removed
GeneralRe: File desn't exist on code projectmemberNed Thompson4 Dec '07 - 9:18 
Hi Mojtaba,
 
There would be something wrong with CodeProject, I did try to repair the link and even re-uploaded the file but problem still occurs. Sorry about that. You can download Flyout from this link http://www.obout.com/inc/download.aspx
 
Regarding to your concern, Flyout is an added value for oboutSuite (the suite contains about 20 controls). The suite is not free. However, some of controls in the suite are free, and Flyout is one of them.
 
And I do not own the source code, I am only a guy who know there is a nice free control and introduce it to you guys.
 
---
Best Regards,
Ned
Developer
OBOUT INC - www.obout.com
QuestionIs the source code available?memberDavid Hollifield28 Nov '07 - 13:15 
I guess that pretty much sums it up Big Grin | :-D . Your control is really cool, but I can't use it unless I have access to the source code (company requirement). If someone buys your suite of controls, is source code included then (like with Infragistics or ComponentOne)? I was pretty disappointed that the source wasn't included in the download since most articles on CodeProject seem to be more educational than promotional.
 
Thanks,
David
QuestionCool control but is it really free?memberVishal_Trivedi26 Nov '07 - 23:24 
Hello all,
 
This seems a really cool control, and I wish to use it in a few of my projects but am hesitant to do so because of the below questions I have:
1. Is it really free for commercial usage? (No strings attached?)
2. What assurance is there that it will not stop after a pre-determined time limit?
3. What if the developers decide to make the next version paid?
 
Does anyone know where I can find the answers to the above questions?
 
Thanks!
 
=== Vishal Trivedi
=== VishalTrivedi.com/blog

AnswerRe: Cool control but is it really free?memberNed Thompson27 Nov '07 - 2:31 
Hi Vishal,
 
Flyout control is total free. You can use for both personal and commercial purpose. There will be no expiration now and forever.
 
Flyout is released as free added value to oboutSuite. Here is our license page . Beside Flyout, there are also some other nice free controls as well.
 
If you have any issue with Flyout or any other controls in our suite, don't hesitate to email us at support@obout.com
 
-----
Best Regards,
Ned.T
Developer
OBOUT INC - www.obout.com
GeneralGreatmembermerlin98126 Nov '07 - 4:01 
This great! Thanks for sharing. 5 from me
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rhabot - World of Warcraft Bot

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GeneralRe: GreatmemberNed Thompson27 Nov '07 - 2:45 
Thank you, Merlin
 
---
Best Regards,
Ned
Developer
OBOUT INC - www.obout.com
GeneralNice ControlmemberPham Tien Thanh23 Nov '07 - 21:51 
Nice free control! Thank you for your development.Smile | :)
GeneralThat is exactly what I am looking for :)memberMad Scientist23 Nov '07 - 13:49 
I saw this control in many big big websites ... but could not find any third party providing it. May be it is too simple and not worth to do Big Grin | :-D . So I did end up of creating one by myself. Although my control is working, it run into incompatibility issues with different browsers and wrong positioning in many case.
 
I have tried Flyout for few days and I have to say that it is an excellent tool. I tested with "evil intention of breaking" but have not found any cases that it fails to produce unwanted outcome, at least until now. And it seems working well with Microsoft Ajax 1.0, that is what I need for my web20 project.
 
I have written some questions to support@obout.com and ask about Flyout control, although it is free control, their support is really fast and helpful.
 
In sum, I am very please and decide to vote 5 stars for their control and this article.
 
BTW, Their suite of controls looks good, i am trying it out.

GeneralRe: That is exactly what I am looking for :)memberNed Thompson27 Nov '07 - 2:43 
Thank you for your good comment.
Let us know if you have any issue with Flyout.
 
---
Best Regards,
Ned
Developer
OBOUT INC - www.obout.com
GeneralNice & free controlmembersaglam22 Nov '07 - 9:59 
This is a nice and free control that I use some of my projects.
GeneralRe: Nice & free controlmemberNed Thompson27 Nov '07 - 2:40 

Thank you, Saglam
 
---
Best Regards,
Ned
Developer
OBOUT INC - www.obout.com

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 5 Dec 2007
Article Copyright 2007 by Ned Thompson
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid