how to refresh contents of UpdatePanel using call from outside of

O

Oleg

(in .NET 2.0 with AJAX extensions)
I have an UpdatePanel on the form.
Now I want to use a link outside of my UpdatePanel to make it to update
(asynchronously) and also send some(at least one ) parameters.

I'm trying using ICallbackEventHandler, but it doesn't update the UpdatePanel.

Any suggestions?
Thanks.
 
C

cfps.Christian

I'm not quite sure what you're looking for but it sounds like you need
an async trigger.
<updatePanel id="pnlUp" runat="server">
<contenttemplate>
<!--Stuff -->
</contenttemplate>
<triggers>
<asp:asyncronouspostback controlid="btnPost"
eventname="click" />
</triggers>
</updatepanel>
 
A

Arnab das

I'm not quite sure what you're looking for but it sounds like you need
an async trigger.
<updatePanel id="pnlUp" runat="server">
     <contenttemplate>
          <!--Stuff -->
     </contenttemplate>
     <triggers>
          <asp:asyncronouspostback controlid="btnPost"
eventname="click" />
     </triggers>
</updatepanel>

Oleg ,
You can add the following code to your click event handler of the link
button

UpdatePanel upd = new UpdatePanel();

upd.ID = "UpdatePanel1";
upd.UpdateMode = UpdatePanelUpdateMode.Conditional;
upd.Update();
 
A

Arnab das

(in .NET 2.0 with AJAX extensions)
I have an UpdatePanel on the form.
Now I want to use a link outside of my UpdatePanel to make it to update
(asynchronously) and also send some(at least one ) parameters.

I'm trying using ICallbackEventHandler, but it doesn't update the UpdatePanel.

Any suggestions?
Thanks.



Oleg ,
You can add the following code to your click event handler of the
link
button

UpdatePanel upd = new UpdatePanel();


upd.ID = "UpdatePanel1";
upd.UpdateMode = UpdatePanelUpdateMode.Conditional;
upd.Update();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top