Use c# component class in ASpx

  • Thread starter Thread starter anubhuti
  • Start date Start date
A

anubhuti

Hi....
I am working in dotnet environment and am new to it.i have a component class
in userTracker.cs in onDemand project and an onDEmand.aspx in onDemand
project..i want to access this component class in onDEmand.aspx.cs..how do i
do it.....

Thanks
Anubhuti......
 
Is userTracker.cs in the same project (web project) as the onDemand.aspx
page? If so, you only need to reference it in code using the appropriate
namespace if it is different from the namespace for OnDemand.aspx.cs.

If it is in a different project, right-click on the references in your web
project, click the Projects tab, and select the project with the
userTracker.cs class in it. Then in code reference the class with the
appropriate namespace if necessary.

-Darrin
 

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

Back
Top