Using RealWorld.Grids with Master Page problem

Mar 27, 2007 at 9:14 PM
I downloaded and added the RealWorld.Grids project to my solution. I also downloaded and added the sample project GridWeb to my solution. The sample GridWeb works just fine.

However, when I added the reference of this grid to my project (my bin\ has both RealWorld.Grids.pdb and dll), and tried to use it in one of my page, I got this error:

AdminAuthorizationNew.aspx(78): Build (web): Unknown server tag 'rwg:BulkEditGridView'.

and the tag <rwg:BulkEditGridView was not recognized.

Can somebody tells me what is wrong. Below is a snippet of my page.

//--------------------------------------------------
<%@ Page Language="C#" MasterPageFile="~/MasterPageEdsTemplate.master" AutoEventWireup="true"
CodeFile="AdminAuthorizationNew.aspx.cs" Inherits="Admin_AdminAuthorization"
Title="Admin - Authorization" %>
<%@ MasterType VirtualPath="~/MasterPageEdsTemplate.master" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="ContentPlaceHolder1">
<div align="center">
<asp:Panel ID="pnlPermission" runat="server" >
<rwg:BulkEditGridView ID="gvPermission" runat="server" AutoGenerateColumns="False"
CssClass="ValueGridView" AllowSorting="True" ShowHeader="true" ShowFooter="true"
DataSourceID="sdsPermission" SaveButtonID="btnSave"
DataKeyNames="ObjectID" EmptyDataText="No Data Found" GridLines="Vertical"
OnRowDataBound="gvPermission_RowDataBound"
OnDataBound="gvPermissionDataBound" OnRowCreated="gvPermissionRowCreated">
<Columns>
<asp:BoundField DataField="ObjectID" Visible="False" />
<asp:BoundField DataField="Name" SortExpression="Name" ReadOnly="True"
HeaderText="Object" HeaderStyle-HorizontalAlign="Left"
FooterText="Check/Uncheck All" FooterStyle-HorizontalAlign="Right"/>
</Columns>
<RowStyle CssClass="ValueGridViewRowStyle" />
<SelectedRowStyle CssClass="ValueGridViewSelectedRowStyle" />
<HeaderStyle CssClass="ValueGridViewHeaderStyle" ForeColor="White" HorizontalAlign="Center" />
<EmptyDataRowStyle CssClass="ValueGridViewEmptyDataRowStyle" />
<AlternatingRowStyle CssClass="ValueGridViewAltRowStyle" />
</rwg:BulkEditGridView>
</asp:Panel>
<asp:Panel ID="pnlButtons" runat="server" >
<asp:Button ID="btnSave" runat="server" Text="Save" CausesValidation="True"
ForeColor="Green" CommandName="Save" OnClick="btnSave_Click" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="False"
ForeColor="Red" CommandName="Cancel" OnClick="btnCancel_Click" />
<input id="btnReset" type="reset" value="Reset" style="color:Sienna" />
</asp:Panel>
</div>
<asp:SqlDataSource ID="sdsPermission" runat="server"
ConnectionString="<%$ ConnectionStrings:VALUEConnectionString %>"
SelectCommandType="StoredProcedure" SelectCommand="usp_SelectAuthorizationByFunctionCD">
</asp:SqlDataSource>
</asp:Content>
Mar 27, 2007 at 10:22 PM
FOUND the problem. It's web.config, ...

Has nothing to do with usage of Master Page or anything else. I need to add a page attribute in web config:

<system.web>
<pages>
<controls>
<add assembly="RealWorld.Grids" namespace="RealWorld.Grids" tagPrefix="rwg" />
</controls>
</pages>