I know that, in asp.net 2.0, the assembly for the web site is splitted into
pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder,
how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????"
%>
My other question is "Since i don't know the name of the assembly of the
asp.net 2.0 web site, how can dynamically load that assembly using the
Assembly.CreateFromFile () method??
Thank you 8 6322
Use "__code":
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="__code" %>
-Brock
DevelopMentor http://staff.develop.com/ballen I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
Thank you so much.
How can i load that assembly on the fly using
Assembly.LoadFrom ()
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com... Use "__code":
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="__code" %>
-Brock DevelopMentor http://staff.develop.com/ballen
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
Why would you need to manually load the assembly? Just call "new" on the
control/class defined in the App_Code directory.
-Brock
DevelopMentor http://staff.develop.com/ballen Thank you so much.
How can i load that assembly on the fly using Assembly.LoadFrom () "Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message news:b8**************************@msnews.microsoft .com...
Use "__code":
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="__code" %>
-Brock DevelopMentor http://staff.develop.com/ballen I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %> My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
I have a custom control on a seperate assembly. I give a reference to that
custom control from web site. This web control loads "custom controls" that
are under the app_code folder. Maybe i am not clear but, i definetely need
to find a way to load them.
This is the inside of the load method. This was valid at 1.1. It is no more
valid at asp.net 2.0
// The assembly will be searched in the bin folder of the application
string path = AppDomain.CurrentDomain.BaseDirectory + "bin" + "/" +
cstModule.Assembly + ".dll";
// Load assembly
ass = Assembly.LoadFrom(path);
// Load control from assembly
control = (System.Web.UI.Control)ass.CreateInstance(cstModul e.TypeName);
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com... Why would you need to manually load the assembly? Just call "new" on the control/class defined in the App_Code directory.
-Brock DevelopMentor http://staff.develop.com/ballen
Thank you so much.
How can i load that assembly on the fly using Assembly.LoadFrom () "Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message news:b8**************************@msnews.microsoft .com...
Use "__code":
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="__code" %>
-Brock DevelopMentor http://staff.develop.com/ballen I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %> My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
By the way, it gives an error for _code
<%@ Register Assembly="_code" Namespace="A" TagPrefix="abc" %>
Error 3 Could not load file or assembly '_code' or one of its dependencies.
The system cannot find the file specified. C:\Documents and
Settings\utezduyar\My Documents\Visual Studio
2005\WebSites\WebFrameworkTestSite\Default.aspx 2
"Umut Tezduyar" <um**@tezduyar.com> wrote in message
news:eJ*************@TK2MSFTNGP09.phx.gbl... I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
<%@ Register Assembly="App_Code" Namespace="A" TagPrefix="abc" %>
This is working perfectly.
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com... Use "__code":
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="__code" %>
-Brock DevelopMentor http://staff.develop.com/ballen
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
I found the solution for this.
System.Reflection.Assembly.Load (string assemblyName) solves all of my
problems.
System.Reflection.Assembly.Load ("App_Code") works perfectly.
"Umut Tezduyar" <um**@tezduyar.com> wrote in message
news:eJ*************@TK2MSFTNGP09.phx.gbl... I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you
Two underscores in __code.
-Brock
DevelopMentor http://staff.develop.com/ballen By the way, it gives an error for _code
<%@ Register Assembly="_code" Namespace="A" TagPrefix="abc" %>
Error 3 Could not load file or assembly '_code' or one of its dependencies. The system cannot find the file specified. C:\Documents and Settings\utezduyar\My Documents\Visual Studio 2005\WebSites\WebFrameworkTestSite\Default.aspx 2
"Umut Tezduyar" <um**@tezduyar.com> wrote in message news:eJ*************@TK2MSFTNGP09.phx.gbl...
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly.
My question is, if i create a custom web control under the App_Code folder, how can i add a register tag on a page.
<%@ Register TagPrefix="ABC" Namespace="ABC.Foo" Assembly="???????????????" %>
My other question is "Since i don't know the name of the assembly of the asp.net 2.0 web site, how can dynamically load that assembly using the Assembly.CreateFromFile () method??
Thank you This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Derrick |
last post by:
I have created a custom control, and for one of its properties it is
possible that the value may be null. However, at design time when a null
value is assigned, I get the error "The object...
|
by: Michael Bøcker-Larsen |
last post by:
Hi
I'v been stuck on this problem for ages now. I have found that I'm not
the only one with this problem, by looking through the different
newsgroups.
Hope you can help me! I know there is a...
|
by: Philipp Schmid [MSFT] |
last post by:
I am trying to add a Generic Handler (ASHX) to my web site solution. In
order to do that I have to specifiy an assembly name in the web.config file.
But since 2.0 web sites are no longer...
|
by: tony |
last post by:
Hello!!
When you add an item you can select to add a component class or Custom
control or several other.
I know what a Custom control is but what is a component class?
Is it more or less...
|
by: ahmed.maryam |
last post by:
Hello Everyone,
I designed a custom control that is entirely covered by a picture box.
I then dragged this custom control onto a windows form application
(called main) and I need to handle mouse...
|
by: ChopStickr |
last post by:
I have a custom control that is embedded (using the object tag) in an html document.
The control takes a path to a local client ini file.
Reads the file.
Executes the program specified in...
|
by: Sin Jeong-hun |
last post by:
Hello.
The two terms are confusing so I had searched Google for it, but
always those of ASP.NET popped up. Not ASP.NET, I want to know about
Windows Form Custom Control VS Windows Form User...
|
by: AleXmanFree |
last post by:
Hi , I have got problem with passing my inline based value to y user
control (or custom control, no matter which one I use, I have tried
both to make sure it doesnt matter) .
So say I have...
|
by: truezplaya |
last post by:
Hi
I have created a custom control that contains a click event within it. Is there any way that you can then repurpose the click event when calling the control.
Lets say my custom control is a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| | |