473,508 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to refresh contents of UpdatePanel using call from outside of

(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.
Mar 31 '08 #1
3 2206
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>

Mar 31 '08 #2
On Apr 1, 1:10*am, "cfps.Christian" <ge0193...@otc.eduwrote:
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();
Apr 1 '08 #3
On Mar 31, 10:22*pm, Oleg <O...@discussions.microsoft.comwrote:
(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();
Apr 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3733
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
0
5499
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to...
3
4741
by: fran_j_diaz | last post by:
Hye, I've got some problems in developping web sites with Visual Studio 2005 (ASP.net & C#) and the Microsoft Ajax library. In my webpage default.aspx
0
2921
by: Jeff | last post by:
hey asp.net 3.5 I have 2 UpdatePanels in my webpage. This webpage has a GridView, which one of its column is a templatefield which again contain a UpdatePanel and a button... The other...
1
2447
by: Wazzamatazz | last post by:
Hi folks, I've been trying to work out how to asynchronously update the contents of a TabPanel using an UpdatePanel and I can't for the life of me get it to work. I've seen a couple of examples...
0
3788
by: =?Utf-8?B?R2lvcmdpbw==?= | last post by:
Hi, I am having a problem and I need some help. I have a listview with a collapsible panel that has a updatepanel and listview inside updatepanel and I have a button that triggers the...
1
4864
by: abcd | last post by:
I have a master page which has Script Manager declared. I have content page TestContent.aspx, it includes User Controls (.ascx) called FirstControl.ascx. FirstControl.ascx includes another...
4
2792
by: Peter | last post by:
ASP.NET 3.5 I have a web page and this web page has a DataList, when user hovers the mouse over a picture in the datalist a popup appers, this popup is a User Control and it has a cancel button....
2
12210
by: qwedster | last post by:
Folks! The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.