Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Composite Control with Datagrid and Microsoft IE Toolbar (http://www.velocityreviews.com/forums/t757308-composite-control-with-datagrid-and-microsoft-ie-toolbar.html)

King Kong 12-08-2004 03:58 PM

Composite Control with Datagrid and Microsoft IE Toolbar
 

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\EnhanceBrow se.aspx Line: 19


I think ive missed some thing in rendering Toolbar Control
please help
Regards
Moid Iqbal



All times are GMT. The time now is 04:53 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.