Custom WebControl

E

Ernest Morariu

Hi All !

aspnet 2005; C#

I created a control deriving from System.Web.UI.WebControls.ImageButton.
Besides the control itself the project contains also some aspx pages.
The onclick event of this control is executed on client side(JavaScript).
The code in the onclick, opens a new window with showModalDialog() calling
one of the aspx pages inside my project.

This control should be used in many other applications here in my company.

My question is: where I should place my control on the webserver to be
easly used by the other applications ? as a new app on the root ? as a
subweb of each application ?

Is there any possibility to know(inside my control) wich is the virtual path
of my control relative to the virtual path of the application that uses my
control ? I need to know this as my control calls aspx pages that reside
under the folder of my control and this path could be different from the
application path(the app that uses my control).

Any help will be really appreciated.

Ernest Morariu
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top