Composite Control with Datagrid and Microsoft IE Toolbar

Discussion in 'ASP .Net Building Controls' started by King Kong, Dec 8, 2004.

  1. King Kong

    King Kong Guest

    Ive developed a composite control that generates Microsoft IE Toolbar and datagrid
    when we add toolbar items it goes like this
    "FooterToolBarItems" is the toolbar that is shown after the datagrid is rendered
    "HeaderToolBarItems" is the toolbar that is shown after the datagrid is rendered
    in aspx page it shows like
    <cc1:enhancedbrowse id="EnhancedBrowse1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 16px" runat="server" BorderWidth="1px" BorderColor="#3366CC" AllowSorting="True" AllowPaging="True" ColumnType="Simple" PageSize="8" BackColor="White" CellPadding="4" BorderStyle="None" HeaderToolVisible="True" Width="384" Height="184" FooterToolBarItems="">

    <FooterToolBarItems>
    <Microsoft.Web.UI.WebControls.ToolbarButton Text="asdas" ToolTip=" asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    <Microsoft.Web.UI.WebControls.ToolbarButton Text="asdas" ToolTip=" asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    <FooterToolBarItems>


    <HeaderToolBarItems>
    <Microsoft.Web.UI.WebControls.ToolbarButton Text="asdas" ToolTip=" asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    <Microsoft.Web.UI.WebControls.ToolbarButton Text="asdas" ToolTip=" asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    <HeaderToolBarItems>

    <PagerStyle HorizontalAlign="Right" BackColor="Gainsboro" Mode="NumericPages">
    </cc1:enhancebrowse>


    when i try to run this in browser i get this
    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Microsoft.Web.UI.WebControls.ToolbarItemCollection must have items of type 'Microsoft.Web.UI.WebControls.ToolbarItem'. 'Microsoft.Web.UI.WebControls.ToolbarButton' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

    Source Error:


    Line 17: Height="184" FooterToolBarItems="">
    Line 18: <FooterToolBarItems>
    Line 19: <Microsoft.Web.UI.WebControls.ToolbarButton Text="asdas" ToolTip=" asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    Line 20: <Microsoft.Web.UI.WebControls.ToolbarButton Text="asd" ToolTip=" asd asd"></Microsoft.Web.UI.WebControls.ToolbarButton>
    Line 21: </FooterToolBarItems>


    Source File: C:\ENF\ENFControlLibrary\ControlViewer\EnhanceBrowse.aspx Line: 19


    I think ive missed some thing in rendering Toolbar Control
    please help
    Regards
    Moid Iqbal
     
    King Kong, Dec 8, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sleigh
    Replies:
    1
    Views:
    2,694
    sleigh
    Feb 12, 2004
  2. King Kong

    Datagrid and IE Control Toolbar Composite Control

    King Kong, Dec 20, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    142
    King Kong
    Dec 20, 2004
  3. Chad
    Replies:
    0
    Views:
    227
  4. Griff

    Composite control not appearing in toolbar...

    Griff, Oct 9, 2006, in forum: ASP .Net Building Controls
    Replies:
    5
    Views:
    150
    Brennan Stehling
    Oct 18, 2006
  5. pcouas
    Replies:
    0
    Views:
    263
    pcouas
    Feb 19, 2007
Loading...

Share This Page