PC Review


Reply
Thread Tools Rate Thread

Control not recognized

 
 
shapper
Guest
Posts: n/a
 
      14th Mar 2008
Hello,

I am creating a custom control that inherits from DataPager. I have
the following:

Imports System.Web.UI.WebControls

Public Class WebPager
Inherits DataPager

End Class

I get an error on "Inherits DataPager". It says "Type data pager is
not defined"

I even tried to replace it by "Inherits
System.Web.UI.WebControls.DataPager".

This is a mystery to me. Why am I getting this error.

Thanks,
Miguel
 
Reply With Quote
 
 
 
 
David R. Longnecker
Guest
Posts: n/a
 
      14th Mar 2008
Have you added a reference to 3.5.0.0 version of System.Web.Extensions?
While DataPager exists in System.Web.UI.WebControls namespace, it's a member
of the System.Web.Extensions assembly. Adding a reference to System.Web.Extensions
should allow DataPager to resolve properly.

HTH.

-dl

--
David R. Longnecker
http://blog.tiredstudent.com

> Hello,
>
> I am creating a custom control that inherits from DataPager. I have
> the following:
>
> Imports System.Web.UI.WebControls
>
> Public Class WebPager
> Inherits DataPager
> End Class
>
> I get an error on "Inherits DataPager". It says "Type data pager is
> not defined"
>
> I even tried to replace it by "Inherits
> System.Web.UI.WebControls.DataPager".
> This is a mystery to me. Why am I getting this error.
>
> Thanks,
> Miguel



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WMP control's mediaEnded state is not recognized kimiraikkonen Microsoft VB .NET 0 13th Jan 2008 04:55 PM
Control Alt Delete not recognized =?Utf-8?B?S3Jpc3Rp?= Windows XP Accessibility 1 13th Feb 2007 04:39 AM
Control not recognized =?Utf-8?B?bkZhdXg=?= Microsoft Access Forms 4 17th May 2006 06:21 PM
Legit Remote Control Software Recognized Steven Spyware Discussion 3 7th Jan 2005 12:34 AM
ListBox control not being recognized by Macro battists Microsoft Excel Programming 1 16th Mar 2004 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:23 PM.