467,903 Members | 1,660 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,903 developers. It's quick & easy.

Type not defined - error message

TJS
What doe sthis mean "Type not defined" when pointing to 'Protected with
events ' line in codebehind ?

========================================
Public Class dispCalendar
Inherits System.Web.UI.Page

Protected WithEvents myCalendar As popUpCalendar '<==error here

Nov 19 '05 #1
  • viewed: 1167
Share:
2 Replies
On Thu, 16 Jun 2005 11:24:39 -0700, TJS wrote:
What doe sthis mean "Type not defined" when pointing to 'Protected with
events ' line in codebehind ?

========================================
Public Class dispCalendar
Inherits System.Web.UI.Page

Protected WithEvents myCalendar As popUpCalendar '<==error here

Possibly popUpCalendar is undefined
Nov 19 '05 #2
TJS
Yes ,I see it is telling me it is "not defined" , but what does that mean.
I need to resolve this error.

The popUpCalendar is referenced in the aspx file as:

======display page=======
<%@ Page language="VB" src="dispCalendar.aspx.vb" Inherits="dispCalendar" %>
<%@ Register TagPrefix="sk" TagName="popUpCalendar"
src="/ctl/popupcalendar.ascx" %>
.....html..

<sk:popUpCalendar id="myCalendar" runat="server" />
....

=====code behind -dispCalendar.aspx.vb ========

Public Class dispCalendar
Inherits System.Web.UI.Page
Protected WithEvents myCalendar As popUpCalendar '<==error here
....
===============================
full sample code is here:

http://www.dotnetjunkies.com/Article...7F9D7130F.dcik

"intrader" <in******@attglobal.net> wrote in message
news:pa****************************@attglobal.net. ..
On Thu, 16 Jun 2005 11:24:39 -0700, TJS wrote:
What doe sthis mean "Type not defined" when pointing to 'Protected with
events ' line in codebehind ?

========================================
Public Class dispCalendar
Inherits System.Web.UI.Page

Protected WithEvents myCalendar As popUpCalendar '<==error here


Possibly popUpCalendar is undefined
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Terje Slettebř | last post: by
21 posts views Thread by Nitin Bhardwaj | last post: by
669 posts views Thread by Xah Lee | last post: by
8 posts views Thread by Rob T | last post: by
8 posts views Thread by Rob T | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.