dynamic ASP 2.0 Pages

  • Thread starter =?ISO-8859-1?Q?J=F6rn_von_Holten?=
  • Start date
?

=?ISO-8859-1?Q?J=F6rn_von_Holten?=

Hi,
my 3-tier system has a separate bizz-logic and storage service (MVC
paradigm as usual) and the bizz-logic layer shall drive the logic
(workflow) of the ASP site.

My "idea" is (alike Xaml but I am not allowed to use Xaml now) to store
meta info defining the design of the dialogs. These are "rendered" to
ASP.NET 2.0 objects in the visualization layer (code-behind). Obviously
I can move to Xaml quite easily later on :)

As newby with ASP.NET I gave Whidbey the chance to show me how things
are going to work and I easily managed to create 3-4 sample dialogs
using the visible-invisble "trick". Fine so far.

Now I tried to use "new" (C#) in the code-behind area to create those
items. A pity, that those classes are all sealed but its a great relief
anyway.

The design (I mean how it appears in IE) was still ok now, BUT ... and
here is the question ... although i added the events (for buttons and
such) as my intuition made me believe and although the debugger did not
reveal some (drastic) changes to "my" objects in contrast to those
created by Whidbey at compilation stage before ... the events don't
reach my code-behind .... which is quite unlucky. Some of the buttons
are still Whidbey-created and those still work.

Any suggestions or examples where I can see how this works. Is it a
problem with the beta-1 state of ASP.NET 2.0?

cheers Jörn
 
P

Paul Glavich [MVP ASP.NET]

As a quick guess it just sounds like you have not rendered the correct logic
in the client side to get the postback to work correctly. Once the page is
rendered, do a view source and examine the html code that is generated. You
will probably see some obvious differences between the designer added
buttons, compared to your dunamic ones in terms of the event code generated.
This should steer you in the right direction.
 
J

Juan T. Llibre

Jörn,

One of the best things you can do, as a self-declared "newby",
is learn to call the different technologies by their correct name.

Your question is about "ASP.NET" 2.0,
not about "dynamic ASP" 2.0

ASP 2.0 was one of the predecessors of ASP.NET.

Re your question :

"although i added the events ... changes to "my" objects in contrast
to those created by Whidbey ... the events don't reach my code-behind

You answer your question yourself when you say that :

"Some of the buttons are still Whidbey-created and those still work."

Clearly, what you did does not conform to what's needed
if your objects are to be "visible" to your code-behind.

I'd recommend that you take a good look at the differences
between the code you hand-wrote and the code generated
by Whidbey, to establish exactly what it is you're missing.

If you still can't find the difference, try posting a sample of one of your
hand-coded object events and one of the Whidbey-generated ones.

There's quite a few eagle-eyed guys in this newsgroup
who'll be very happy to help you out... ;-)
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top