Monday, March 26, 2012

ajax asp tags not available in head anymore?

Prior to this release I had a (?potentially bad?) habit of putting my script manager tag inside the <head> tag. Now it looks like that can't be done, or at least the intellisense won't work there. Any comments on

1) this was a stupid idea to begin with ?

2) its a bug or a feature - but get used to it?

Thanks.

hello.

1. if i'm not mistaken, now theymust be inside a form (which is good since after all we're talking about a server control)

2. well, not getting intellisense is surelly a bug :)


In the early CTPs they worked inside the head, which in 2.0 is a programmable container.

The loss of this ability to me to be a 'breaking change' from CTP to Beta. Its 'adjustable' but cuts down some scenarios for wiring in clientside scripts using web service proxies declared in the header, but meant to be used via dhtml outside of serverside form tags. Working through my scenarios now.


hello.

well, in my opinion, the previous behavior was a bug, since all server controls must be declared inside a server form.


Not all controls are required to be within the form;

The SM is required to be within the form in the beta, but this may be relaxed. The partial page postback model (UpdatePanel) requires it to be in the form, but when EnablePartialRendering is not on and/or Updatepanels are not around, then it might be 'allowed' outside. Still being debated however.


hello again.

well, from looking at the control hierarchy, i think that my previous statement was wrong since it only inherits from control. so, maybe it could be put outside the form tag (if it doesn't break the page postback model)

No comments:

Post a Comment