using ajax callbacks asp.net user controls
what's best proceed exercise user controls need ajax callbacks?
i wish accomplish few things:
- have events finished browser (eg, drag drop) trigger an ajax presentation lift control event, causes formula page controlling control whatever needs (eg, change value database).
- have biased updates (not controlling an updatepanel) things stock an auto-complete dropdown underneath textbox.
- implement unparalleled user control general adequate reused several pages
- avoid carrying exercise explanation page itself passes events behind control, since steady tough say
i'm controlling jquery many fan side stuff, nonetheless tangible ajax calls i don't unequivocally caring it's jquery asp ajax libraries.
effectively ideal pagemethods user control, simply callable client-side script. unfortunately, distant i'm aware, pagemethods work user controls.
i'll an autocomplete control an example:
i should means put autocomplete control page, following page code, have eg:
public servant handlelookup(byval quarrel string, byref list list(of string) handles mycontrol.lookupentries
list = new list(of string)
' query database list items..
any vigilant twine fullitemlist
item.startswith(input) following list.add(item)
next
relapse list
end sub
and zero else .. rest formula should usercontrol.
note, controls i'm perplexing many some-more specific eg, autocomplete. exist any 3rd jubilee libraries i unequivocally need means myself.
Comments
Post a Comment