473,503 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

the asp.net application doesn't compile it self under the /bin directory, where it is?


I want to use my custom control (.cs) in my web application. Custom control
is in the same assembly as my application. I want to know the name of the
assembly (.dll) file so i can add it's <@Pegister Assembly="abc.dll"> name.
But in asp.net 2.0 i can't find the assembly. It is not compiled under the
/bin folder. Where it is, or how can i give a reference to it?
Nov 20 '05 #1
4 1764
re:
I want to use my custom control (.cs) in my web application.
Custom controls aren't located in *.cs files.
Classes are included in *.cs files.

Can you clarify what you are looking for ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <um**@tezduyar.com> wrote in message
news:ux**************@TK2MSFTNGP14.phx.gbl...
I want to use my custom control (.cs) in my web application. Custom control is in the
same assembly as my application. I want to know the name of the assembly (.dll) file so
i can add it's <@Pegister Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the
assembly. It is not compiled under the /bin folder. Where it is, or how can i give a
reference to it?

Nov 20 '05 #2
I mean, not the *.ascx (User controls), custom control.

Let me ask my question in this way: I can't add my custom control in a web
page because i don't know what to write in the <@Page Assembly=''> register
tag.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
re:
I want to use my custom control (.cs) in my web application.


Custom controls aren't located in *.cs files.
Classes are included in *.cs files.

Can you clarify what you are looking for ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <um**@tezduyar.com> wrote in message
news:ux**************@TK2MSFTNGP14.phx.gbl...

I want to use my custom control (.cs) in my web application. Custom
control is in the same assembly as my application. I want to know the
name of the assembly (.dll) file so i can add it's <@Pegister
Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the assembly.
It is not compiled under the /bin folder. Where it is, or how can i give
a reference to it?


Nov 20 '05 #3
OK...

For that, check out :
http://support.microsoft.com/default...b;en-us;321749

The proper tag is :
<%@ Register TagPrefix="Custom" Namespace="CustomControlNamespace" Assembly= "CustomControl" %>

Custom is an alias that you associate with a namespace.
CustomControlNamespace is a namespace in which classes of an assembly are enclosed.
CustomControl is the name of the assembly file without an extension (.dll).


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Umut Tezduyar" <um**@tezduyar.com> wrote in message news:uI****************@tk2msftngp13.phx.gbl...
I mean, not the *.ascx (User controls), custom control.

Let me ask my question in this way: I can't add my custom control in a web
page because i don't know what to write in the <@Page Assembly=''> register
tag.


"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
re:
I want to use my custom control (.cs) in my web application.


Custom controls aren't located in *.cs files.
Classes are included in *.cs files.

Can you clarify what you are looking for ? "Umut Tezduyar" <um**@tezduyar.com> wrote in message
news:ux**************@TK2MSFTNGP14.phx.gbl...

I want to use my custom control (.cs) in my web application. Custom
control is in the same assembly as my application. I want to know the
name of the assembly (.dll) file so i can add it's <@Pegister
Assembly="abc.dll"> name. But in asp.net 2.0 i can't find the assembly.
It is not compiled under the /bin folder. Where it is, or how can i give
a reference to it?


Nov 20 '05 #4
On Wed, 16 Nov 2005 10:52:05 -0800, "Umut Tezduyar"
<um**@tezduyar.com> wrote:

I want to use my custom control (.cs) in my web application. Custom control
is in the same assembly as my application.

Is this 2.0? (I assume so based on your previous questions). Your
custom control must be in App_Code, correct?

Something like this:

namespace OTC
{
public class MyCustomControl : WebControl
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("This is my custom control");
base.Render(writer);
}
}
}

I want to know the name of the
assembly (.dll) file so i can add it's <@Pegister Assembly="abc.dll"> name.
But in asp.net 2.0 i can't find the assembly. It is not compiled under the
/bin folder. Where it is, or how can i give a reference to it?


ASP.NET builds App_Code as a separate assembly, and the runtime will
recognize "App_Code" as an assembly name in a reference directive.

<%@ Register Assembly="App_Code" TagPrefix="otc" Namespace="OTC" %>

....

<otc:MyCustomControl runat="Server" id="boo" />

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 20 '05 #5

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

Similar topics

2
3550
by: Sibylle Koczian | last post by:
Still trying to learn PyQt from a book about several Python GUI toolkits, I seem to learn first what doesn't work. The following small script seems to work, but after closing the window I get the...
1
1843
by: Bouke Woudstra | last post by:
Hi, I'm a bit stuck with this python script. It's aim is to encode all flac files to wav and then to mp3. The only problem I have is to preserve the tags. The code works when there's just one...
21
2144
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
9
2754
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
2
3302
by: Ron | last post by:
Hello, I'm attempting to develop a plugin framework for an application that I'm working on. I wish to develop something in which all plugins exist in a directory tree. The framework need only...
7
2078
by: Rabbit | last post by:
Dear all, Does anyone know how to resolve following setup problem, I developed my application(using .net 2.0) which will connect Access database on my Win XP, everything works fine, but when I...
3
1221
by: Brenden Bixler | last post by:
I would like to solicit advice on how to best deploy an enterprise ASP.NET 2.0 web application. I'm using VS 2005 and I've found Publish Web Site to be somewhat lacking, buggy, and slow. My...
10
1793
by: Sourcerer | last post by:
I wrote this very simple code in .NET VC++. I compiled it on my system, and tried to run it on my friend's computer (he doesn't have the compiler). We both have Windows XP Professional. I have .NET...
63
3382
by: David Mathog | last post by:
There have been a series of questions about directory operations, all of which have been answered with "there is no portable way to do this". This raises the perfectly reasonable question, why,...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.