Results 1 to 7 of 7

Thread: IE web controls multipage [resolved]

  1. #1

    Thread Starter
    Hyperactive Member Grunt's Avatar
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    499

    IE web controls multipage [resolved]

    is there a way to use the multipage to display a seperate page without having to put all of the code into the main one. I mean, I already designed the controls on another page, and am implementing a tab strip with a multipage.
    Last edited by Grunt; Jun 30th, 2005 at 02:09 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: IE web controls multipage

    Elaborate please? Whatever you just said escaped over my eyes

  3. #3

    Thread Starter
    Hyperactive Member Grunt's Avatar
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    499

    Re: IE web controls multipage

    Here is some code for my main page:
    Code:
    <iewc:TabStrip ID="tabFusionMain" runat="server" TabDefaultStyle="background-color:#006699;font-family:verdana;font-weight:bold;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center"
                        TabHoverStyle="background-color:#777777" TabSelectedStyle="background-color:#ffffff;color:#000000" TargetID="mpageFusionMain" Width="619px">
                        <iewc:Tab Text="Main" />
                        <iewc:Tab Text="Add" />
                        <iewc:Tab Text="Search" />
                        <iewc:Tab Text="Report" />
                        <iewc:Tab Text="Log Out" />
                    </iewc:TabStrip>
                    
                    <iewc:MultiPage ID="mpageFusionMain" runat="server" Height="331px" BorderWidth="1px" Width="619px">
                         <iewc:PageView id="Main" runat="server">
                            
                <strong>Current User:
                    <asp:Label runat="server" Width="121px" ID="lblUserName"></asp:Label>
                </strong>&nbsp;
    			<div>
                </div>
                <strong>Total Records:
                    <asp:Label runat="server" ID="lblTotalRecords"></asp:Label>
                    <br />
                    Records Open/Resolved:
                    <asp:Label runat="server" ID="lblOpenClosed"></asp:Label>
                    <br />
                </strong>
                            
                            
                            <strong>Filter: </strong><br />
                Category:
                <asp:DropDownList runat="server" ID="lstFilterCategory">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem>Hardware</asp:ListItem>
                    <asp:ListItem>Software</asp:ListItem>
                    <asp:ListItem>Network</asp:ListItem>
                </asp:DropDownList>
    
    &nbsp;<br />
                Priority: &nbsp;
                <asp:DropDownList runat="server" Width="86px" ID="lstFilterPriority">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem>Low</asp:ListItem>
                    <asp:ListItem>Medium</asp:ListItem>
                    <asp:ListItem>High</asp:ListItem>
                </asp:DropDownList>
    &nbsp;
    <asp:Button runat="server" Text="Refresh" ID="cmdRefresh"></asp:Button>
    
    <br />
                <br />
    				<asp:DataGrid runat="server" BorderStyle="None" AutoGenerateColumns="False" BackColor="White"
                        PageSize="25" ID="dtaDataResults" Width="584px" BorderWidth="1px" Height="50px"
                        BorderColor="#CCCCCC" AllowPaging="True" CellPadding="3">
                        <PagerStyle HorizontalAlign="Center" BackColor="White" ForeColor="#000066"></PagerStyle>
                        <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
    
                        <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
                        <Columns>
                            <asp:BoundColumn DataField="Id" HeaderText="Id"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Category" HeaderText="Category"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Description" HeaderText="Description"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Timestamp" HeaderText="Timestamp"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Priority" HeaderText="Priority"></asp:BoundColumn>
                            <asp:EditCommandColumn EditText="Edit" ButtonType="PushButton" UpdateText="Update"
                                HeaderText="Edit" CancelText="Cancel"></asp:EditCommandColumn>
                        </Columns>
    
                        <ItemStyle ForeColor="#000066"></ItemStyle>
                        <AlternatingItemStyle BorderStyle="None"></AlternatingItemStyle>
                        <HeaderStyle Font-Bold="True" Width="34px" ForeColor="White" BackColor="#006699"></HeaderStyle>
                    </asp:DataGrid>
                         </iewc:PageView>
    I have another aspx that I created before I decided to do the mutlipage and tab control. Do I have to cut and past all of the code for the secondary page into the above code for another pageview, or is there a way I can create another pageview and just reference the secondary page?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: IE web controls multipage

    Just to clarify, you mean you would like to use the same tabstrip control but have a different "page" load for each tab item you click?

    You could place all your 'pages' in separate web controls, and have a placeholder on your main page. Depending upon the tab item clicked, you can LoadControl() whichever control you want.

  5. #5

    Thread Starter
    Hyperactive Member Grunt's Avatar
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    499

    Re: IE web controls multipage

    precisely, I want the same tabstrip throughout all of my pages. I was think of using frames, but would rather not if there was another way...

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: IE web controls multipage

    Yes, the method I've shown you would accomplish that. In essence, you are creating something like a base page.

  7. #7

    Thread Starter
    Hyperactive Member Grunt's Avatar
    Join Date
    Oct 2004
    Location
    Las Vegas
    Posts
    499

    Re: IE web controls multipage

    thanks for the idea. That is probably the best way...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width