This is a migrated thread and some comments may be shown as answers.

LoadOnDemand when in an ascx control

1 Answer 36 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 11 May 2012, 12:57 AM
Hello,

I tried to setup server side autoload with a combobox in an ascx control - however it didn't seem to work.  Tracing in fiddler I could see the requests to the page but a breakpoint was never reached.

Is this a supported scenario, or would I need to use a web service or page method?


Also ... is it possible to add a 'context key' or something to the control that's included in the load on demand requests?  For example, if I'm loading foo's for a given customer, I need the customer ID and I was hoping to set a value on the control during page load... rather than have to retrieve it every ajax request.

Thanks

1 Answer, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 11 May 2012, 04:40 AM
Nevermind on the first part... I've got that working.

On the second part, setting context -- still haven't gotten that working.  I decided to use a hidden field, but would prefer to avoid that.
Tags
ComboBox
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Share this question
or