473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Use c# component class in ASpx

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......
Nov 15 '05 #1
1 1821
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
"anubhuti" <si************@rediffmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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......

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: J F | last post by:
Hi all I'm totally new to Visual Studio, coming from Delphi. My question, I'm sure is pretty trivial. I'm using C# I have a component class (Project/Add Class/Component Class). In this...
1
by: Jim H | last post by:
I coded my first asp form and attempted to display a text message from a component. The static text "Our component says:" shows on the aspx page, but the text line from the component does not show....
4
by: Grigs | last post by:
Hello, I have a fairly simple class that I created and it works great. Basically it remembers a certain amount of strings. When a new one comes in the oldest drops off. The problem is, when I...
19
by: Jaime Stuardo | last post by:
Hi all.. I have created a business logic component that is used from my ASP.NET webform. It works, but connection string to the database is hard coded, as in this method : public DataSet...
6
by: booner | last post by:
I have a business component I've built in its .vb file. Compiled the .vb file and copied the outputted dll to the bin directory of my virtual directory. Now in my aspx page when I attempt to...
3
by: Michel Smit | last post by:
I'm running into another problem with my component. I'm trying to use .NET remoting to avoid complex firewall issues. I have a webserver which is the client machine and a database server which...
1
by: Michael Lang | last post by:
I have a class deriving from System.ComponentModel.Component. In VS 2003 I could drag it on to a web form. However I'm finding in VS 2005 whilst it functions perfectly at runtime. At design...
4
by: seokbee | last post by:
Hi, I am having the this problem. Have tried the following all the steps to unregister and register the nlsxbe.dll. The problem still not resolved. Something strange is that after I reboot the...
2
by: =?Utf-8?B?Y2xhcmE=?= | last post by:
Hi all, What is the difference between adding a component or a class to a project? In Toolbox, there is a component section, how can be a component added to there? Clara -- thank you so...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.