Tab Strip

Last post 11-06-2008 8:56 PM by Sonu. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-04-2008 5:40 PM

    Tab Strip

    I wish to use or create a Tab Strip control for an Intranet application, like what you would use when developing a Windows Application.

    I need  this to behave just like a Tab Strip, so that the user can select between different tabs, all on one page.

    However, when the user moves from one tab to another, I would like some way of then asking the user if they want to save changes before changing tab.  I would guess this would be done via some form of event being raised??

    There will be a SAVE button at the bottom of the screen that will result in code being called to save data from ALL the tabs, not the just the current visible one.

    Is this easily achievable with asp.net 2.0 and Visual Studio 2005? 

    Would it be easier with Visual Studio 2008 and .net 3.5?

    Would it be easier using ASP.Net AJAX? 

    What if I cannot use AJAX for this?

    Are there any 3rd party products available that would do this job well and meet my needs?

    Any help much appreciated.

    Thanks,

    Darren

     

    dbrook007
  •  Advertisement

    Featured Advertisement

     
  • 11-04-2008 7:13 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Tab Strip

    I would use the tab panel control provided by the AjaxcontrolToolkit:

    http://www.asp.net/Ajax/Ajaxcontroltoolkit/samples/Tabs/Tabs.aspx

    I have used it myself, in one of my asp.net ajax applications, without any problems. 

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 11-06-2008 3:02 PM In reply to

    Re: Tab Strip

     Hi Sonu,

    Thanks for the reply.

    I looked at the demo and it looks good.

    Can I used standard ASP.Net Server controls within each tab?

    Would I be correct in thinking there is something I have to install or deploy onto the web server to support the ajax control toolkit?

    It may also be the case that I can't use Ajax in this case - if I am restricted to the standard ASP.Net or HTML controls, what would be my best approach?

    Would a 3rd party product be advisable?

    Thanks - Darren

     

    dbrook007
  • 11-06-2008 3:07 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Tab Strip

    You need to upload the AjaxControlKit.dll into your bin folder.

    You can use standard server or standard HTML controls with it. Both types of controls are supported.

    I don't think that you need any third-party control.

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 11-06-2008 4:07 PM In reply to

    Re: Tab Strip

    Hi

    Thanks for that.

    Some tabs may contain, for example, an ASP.Net DataGrid Server control bound to an ObjectDataSource.  I'll be using SQL Server 2005 or 2008 for the database.  Other tabs may contain data populated by ASP.Net code.  Would any of this pose a problem with the tab control?

    I'll then have a save button outside the tab control...  can I get programmatic access to both the tab control and the controls and content within each tab from ASP.Net?

    I may need to do something specific in code on a Page_Load, for example, if a particular tab has been selected.. how would I go about that?

    Can I use this with Visual Studio 2008 and .Net 3.5?

    The webserver this will go on also has a .Net 1.1 web application.  It's my understanding that I can run both web application on the same server, so long as IIS 6 is configured correctly.  Is this correct?

    Thanks,

    Darren

     

     

     

    dbrook007
  • 11-06-2008 8:56 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: Tab Strip

    dbrook007:
    Some tabs may contain, for example, an ASP.Net DataGrid Server control bound to an ObjectDataSource.  I'll be using SQL Server 2005 or 2008 for the database.  Other tabs may contain data populated by ASP.Net code.  Would any of this pose a problem with the tab control?
     

    I dont think so. It should be easily doable - remember that the TabControl is is a server control. You can do whatever you want with it :)

    dbrook007:
    I'll then have a save button outside the tab control...  can I get programmatic access to both the tab control and the controls and content within each tab from ASP.Net?

    Absolutely.

    dbrook007:
    I may need to do something specific in code on a Page_Load, for example, if a particular tab has been selected.. how would I go about that?
     

    What exactly would you need to do?

    dbrook007:
    Can I use this with Visual Studio 2008 and .Net 3.5?

    Yes!

    dbrook007:
    The webserver this will go on also has a .Net 1.1 web application.  It's my understanding that I can run both web application on the same server, so long as IIS 6 is configured correctly.  Is this correct?

    Correct. IIS can not run two websites that are in different versions in the same application pool. You just need to create an application pool for 1.1 and one for 2.0.

     

     

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
Page 1 of 1 (6 items)