Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System.Web.UI.Control' does not contain a definition for...

2 views
Skip to first unread message

Terentius Neo

unread,
Dec 8, 2005, 1:19:02 PM12/8/05
to
Can somebody help with this one? I made an extremely simple UserControl
(so far it has nothing but a few labels and textboxes in it). When I try
to use it in a program I get the following error message. The error
takes place at the line 30:

----------------------------------------
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'System.Web.UI.Control' does not contain
a definition for 'InitializeAsUserControl'

Source Error:

Line 28: <tr>
Line 29: <td style="WIDTH: 193px" colspan="3">
Line 30: <sark:PersonSearchControl id="searchControl"
runat="server"></sark:PersonSearchControl></td>
Line 31: </tr>
Line 32: </tbody>
---------------------------------------

My userControl is inherited from the "System.Web.UI.UserControl" which
has the method asked (InitializeAsUserControl). So why the error and
reference to System.Web.UI.Control? I do not get this at all and would
be glad of any help.

0 new messages