Accessing base class in User Control

G

Guest

Hi All,

I am developing a web application using VS 2005 asp.net 2.0 with C#. I have
my base class in "App_Code" folder and i have another folder called "Users"
where i have developed a user control called users.ascx. Now in my Users base
class i have some properties like FirstName,LastName and i want to display
them in my user control page users.ascx page. I have tried to get them in
several ways but i could not able to acheive the same.. i'm getting the error
"Make sure that the class defined in this code file matches the 'inherits'
attribute, and that it extends the correct base class (e.g. Page or
UserControl)."

Please help me in this issue..and suggest me where did i went wrong..

Thankx in Advance and any Suggestion is greatly Appriciated in Advance
 

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

Top