I can't seem to get my code to pass both the prefixText and contextKey. The example is only passing a contextKey. The javascript code in the example passes the selected checkbox value to the DynamicPopulateExtender control using:
behavior.populate(value);
..which sends the value to the webservice contextKey.
This is what I am trying to do with a cookie value, instead of a checkbox value. In the below code, alert('!'+value+'!'); is returning the correct value (office id), as read from the cookie.
The difference with my code is that I am also passing a prefixText value, based on what the user types into the target control (textbox).
I have just tried passing the contextKey, removing the prefixText, but now nothing appears in the textbox when you type some letters. I have also tried removing the extender from within the GridView in case the javascript was having problems finding it, but this hasn't worked either.
Main Topics
Browse All Topics





by: JonMnyPosted on 2008-07-31 at 13:12:48ID: 22133093
I think what your missing is the javascript that sets the value for the context key
152 1_Working_ with_Dynam ic_Populat e_Extender .all
check out this example
http://aspalliance.com/