javascript - Modify an UpdatePanel by calling server-side code from client code -


it's possible there's no way this, figure ask. i'm relatively new asp.net, having played week now. have right page calls web service, polls until it's done (with progress displayed in updatepanel), hides progress text , instead displays result (a recursive list of files metadata) creating treeview , adding updatepanel. clicking node in treeview update second updatepanel extended information (obtained server-side) node clicked on. don't see way call codebehind function clicking treenode, can call javascript code setting node's navigateurl "javascript:function([the full path of node])".

at point, though, i'm kind of stumped. stackoverflow full of correctly-answered questions how call codebehind javascript (using webmethod, or equivalent), apparently can't call code isn't static, mean couldn't modify page itself, or matter, access session or page state. stackoverflow full of questions how have javascript request updatepanel refresh (__dopostback()), without way communicate server clicked on, updatepanel wouldn't know display.

thus, question, i'm hoping has answer: missing clever way have javascript on page trigger server-side function capable of taking parameter , using partial postback of different updatepanel?

thanks!

actually it's quite straightforward. place linkbutton inside of second update panel (it can have empty text , invisible), in javascript call client-side .click() method of control, , in asp.net handle server-side onclick event.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -