Control not recognized

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
 
D

David R. Longnecker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top