asp.net - c# asp - UpdatePanel is causing a full page postback rather than just posting back itself -


i have page generated update panels so:

foreach(datarow r in getsteps(id).rows)     {        updatepanel steppanel = new updatepanel();       steppanel.id = "steppanel_" + r["stepid"].tostring();        steppanel.contenttemplatecontainer.controls.add(generateinnerpanel(r));       stepholder.controls.add(steppanel);               } 

this generates updatepanels , adds placeholder on page:

<asp:placeholder id="stepholder" runat="server"></asp:placeholder> 

inside each updatepanel clickable panel calls javascript function:

function stepclick(sender, stepid){   __dopostback(sender.id, stepid); } 

the javascript posts , check sender , add details clicked update panel on page load.

the problem i'm having clicking on 1 of divs in update panel causing full postback rather posting contents of containing update panel. set update panels postback rather full page? maybe not setting, in case how it?

many help!

set updatemode conditional , set divs triggers or set childrenastriggers=true.

also, ensure have scriptmanager placed in aspx page. can call server side function asncronously way.


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 -