Control not recognized

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

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
 
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
 
Back
Top