
September 25th, 2000, 11:14 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Custom ASP+ Controls
<i><b>Originally posted by : Sagi Sefer (sagis@you-niversity.com)</b></i><br /><br />Hi<br />I try to build asp+ controller and in the browser in get error message<br />****<br />Compiler Error Message: BC30560: The name 'myControl' is ambiguous in the namespace 'WebApplication1'.<br />****<br /><br />the control code is :<br /><br />Imports System<br />Imports System.web<br />Imports System.Web.UI<br /><br />Namespace WebApplication1<br /><br /> Public Class myControl<br /> Inherits Control<br /> Overrides Sub Render(ByVal writer As HtmlTextWriter)<br /> writer.Write("This is my controler")<br /> End Sub<br /> End Class<br />End Namespace<br /><br />and the .aspx file is :<br /><br /><%@ Page Language="vb" Codebehind="test1.vb" <br /> Inherits="WebApplication1.WebForm1"%><br /><%@ Register TagPrefix="sagi" Namespace="WebApplication1" %><br /><HTML><HEAD><br /> <meta name="GENERATOR" content="Microsoft Visual Studio 7.0"><br /> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"><br /> </HEAD><br /> <BODY><br /> this is test page number 1<br /> <sagi:myControl runat="server" /><br /> </BODY></HTML><br /><br />Thanks a lot<br />sagis@you-niversity.com<br />
|