Using TabStrip control for showing multiple web forms....
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


Thomas Fuller
All,

I want to use a tabstrip control to show multiple web forms but I can't put
controls inside of controls so I need to determine a method for changing
pages/forms from the tabstrip. I thought about using an iframe and just
changing the source as the user clicks on certain actions inside the
multipage, is this the best way to do this?

Thanks All,
Tom
Reply to this message...
 
    
Chuck Peper
I put user controls within the tabs.
and in the code behind for each ascx

Protected WithEvents General As MR_Entry_General
This way you can access any of the public properties on the user
control.

<%@ Register TagPrefix="UC" TagName="General" Src=Mr_entry_general.ascx
%>
<iewc:tabstrip id="TabStrip1" runat="server" TARGETID="MultiPage1"
TabSelectedStyle="background-color:LightSkyBlue;color:black;border-
bottom:none;" TabHoverStyle="background-color:LightSkyBlue;color:red;"
TabDefaultStyle="font-family:verdana;font-weight:bold;font-
size:8pt;color:black;text-align:center;border:solid 3px
LightSkyBlue;padding:5px;border-bottom:none;background-color:white;"
BorderStyle="None">
        <iewc:Tab Text="General"></iewc:Tab>
        <iewc:TabSeparator></iewc:TabSeparator>
        <iewc:Tab Text="Items"></iewc:Tab>
        <iewc:Tab Text="History"></iewc:Tab>
        </iewc:tabstrip>
    <iewc:multipage id="MultiPage1" border="3" runat="server"
BorderStyle="Solid" BorderColor="LightSkyBlue" BorderWidth="3px">
        <iewc:PAGEVIEW ID="pvGeneral">
            <UC:General ID="General" runat="server">
</UC:General>
    </iewc:PAGEVIEW>

Reply to this message...
 
 
System.Web.UI.WebControls.BorderStyle
System.Windows.Forms.BorderStyle




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com