Groups | Blog | Home
all groups > asp.net building controls > august 2005 >

asp.net building controls : One custom WebControl using it at several webpage with diffirent behaviour isnt working


zenone
8/26/2005 2:56:28 AM
Dear all,

I searched a lot on internet/newsgroups, without any correct answer for
my problem.

The problem is:
================
I have a custom webcontrol, the control is used on two pages.

In design time I set the own defined property to i.e. approved_mode for
one page and the second page using the same control I set it on
release_mode. During runtime, when loading the page there is always the
same property. -> Two pages, two instances of custom webcontrol, on
each page setted
for different behaviour. No property chancing.

That is for me a huge problem, because DDay is getting closer and
closer (3 days left :))
I asume the webcontrol is loaded once during global loading of the
website?! Is this correct?

An option is to use the controls with different names, but I really
want to have one sourcebase. I now it for sure that this must be
possible! right? Please reaply asap, any help is very appriciated.

BR,
Zen
zenone
8/26/2005 5:29:01 AM
SOLVED! :D
AddThis Social Bookmark Button