Composite Control with Datagrid and Microsoft IE Toolbar

K

King Kong

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top