Error creating control..Server tag error w/ custom control on webf

Discussion in 'ASP .Net' started by =?Utf-8?B?RGF2ZQ==?=, Jul 20, 2006.

  1. When I drop my custom control on my webform, I get "Error creating
    control..Unknown server tag 'cc1:MyGridView'"

    Here's the code, any suggestions would be appreciated. dave.

    <%@ Register Assembly="CustomControls" Namespace="MyCustomControls"
    TagPrefix="cc1" %>

    <%@ MasterType VirtualPath="~/main.master" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
    Runat="Server">

    <cc1:MyGridView id="MyGridView1" runat="server">
    </cc1:MyGridView>

    </asp:Content>
     
    =?Utf-8?B?RGF2ZQ==?=, Jul 20, 2006
    #1
    1. Advertising

  2. fix: The ToolboxData name and class name must be the same in the class file.
    They were different when I was getting this error

    "Dave" wrote:

    > When I drop my custom control on my webform, I get "Error creating
    > control..Unknown server tag 'cc1:MyGridView'"
    >
    > Here's the code, any suggestions would be appreciated. dave.
    >
    > <%@ Register Assembly="CustomControls" Namespace="MyCustomControls"
    > TagPrefix="cc1" %>
    >
    > <%@ MasterType VirtualPath="~/main.master" %>
    > <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
    > Runat="Server">
    >
    > <cc1:MyGridView id="MyGridView1" runat="server">
    > </cc1:MyGridView>
    >
    > </asp:Content>
    >
     
    =?Utf-8?B?RGF2ZQ==?=, Jul 20, 2006
    #2
    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. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,113
    Ravi Ambros Wallau
    Jun 1, 2005
  2. shruds
    Replies:
    1
    Views:
    894
    John C. Bollinger
    Jan 27, 2006
  3. dliu
    Replies:
    0
    Views:
    2,320
  4. Ravi Ambros Wallau
    Replies:
    0
    Views:
    324
    Ravi Ambros Wallau
    Jun 1, 2005
  5. Ryan
    Replies:
    1
    Views:
    247
    Teemu Keiski
    Feb 18, 2007
Loading...

Share This Page