Showing posts with label dynamiccontrolid. Show all posts
Showing posts with label dynamiccontrolid. Show all posts

Saturday, March 24, 2012

Wot is this error "DynamicControlID must be set "

Server Error in '/AJAXEnabledWebSite1' Application.

DynamicControlID must be set

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.ArgumentException: DynamicControlID must be set

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

What ajax components do you have on the page you are running? Most likely one of them is missing a control association. For example the modalpopupextender has to have a dynamiccontrolID set

it's the web control to associate the AJAX Extender with... look through all the ajax components on the page and check to see if any of them are missing a "DynamicControlID" And if they have that as a property that can be set

would like a detailed explanation of dynamic populate page method

hey everyone

could someone explain to me what the bonuses are of using dynamic populate page method
(and therefore stuff like dynamiccontrolID and dynamicservicemethod)

as opposed to just executing a sqlcommand inside an eventhandler
when the user clicks a linkbutton

i know theres probably a really good reason
its just pretty muddy to me right now

thanks

Dynamic populate happens via a web service call and does not incur the overhead of a postback with full page lifecycle. The downside is that you can't create new server controls via a dynamic populate that are accessible in the underlying page.

DynamicServicePath: path to the web service