Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

how to refresh contents of UpdatePanel using call from outside of

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oleg - 31 Mar 2008 18:22 GMT
(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.
cfps.Christian - 31 Mar 2008 21:10 GMT
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>
Arnab das - 01 Apr 2008 10:14 GMT
> I'm not quite sure what you're looking for but it sounds like you need
> an async trigger.
[quoted text clipped - 7 lines]
>      </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();
Arnab das - 01 Apr 2008 11:14 GMT
> (in .NET 2.0 with AJAX extensions)
> I have an UpdatePanel on the form.
[quoted text clipped - 5 lines]
> 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();

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.