473,698 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why is my Button doing an asynchronous postback?

I have a Page that contains an UpdatePanel with a Button inside of it. The
UpdatePanel has ChildrenAsTrigg ers="false" and UpdateMode="Con ditional", and
the Button is not one of the Triggers, so I would expect clicking this
Button to do a normal postback. However, when I click it, the browser does
not do a postback, although it does execute the eventhandler for the button.
What could I be missing? Thanks.
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/
Jul 25 '08 #1
1 2260
"Nathan Sokalski" <nj********@hot mail.comwrote in message
news:O6******** *****@TK2MSFTNG P02.phx.gbl...
>I have a Page that contains an UpdatePanel with a Button inside of it. The
UpdatePanel has ChildrenAsTrigg ers="false" and UpdateMode="Con ditional",
and the Button is not one of the Triggers, so I would expect clicking this

The postback will always happen (async).
It's just that the UpdatePanel contents will not be updated.
Read:
http://www.asp.net/AJAX/Documentatio...sTriggers.aspx

[snippet]
Child controls of nested UpdatePanel controls will not cause an update of
the parent UpdatePanel control's content unless you call the Update() method
explicitly or you define the child controls as triggers.
[/snippet]

[snippet]
A scenario where you might set ChildrenAsTrigg ers to false is when you have
two UpdatePanel controls and you want a postback from the first panel to
update the content of the second panel but not update its own content. For
example, the first panel might be a list of products to buy and the second
panel might be a shopping cart.
[/snippet]


--
Happy Hacking,
Gaurav Vaish | http://dwt.sourceforge.net
http://blogs.mastergaurav.com | http://eduzine.edujini-labs.com
--------------------------------


Jul 27 '08 #2

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

Similar topics

2
478
by: Cathy | last post by:
Has anyone ever made a webform button run an onClick event that is a Javascript in the HTML code and then after running the script make it go into the code-behind? An HTML button will run the onClick event but will not return to the code-behind. I need to get back to the code, which the webform button will do but I can't make it execute the script. Any help will be appreciated. Thanks.
14
5472
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net that works well as an html page. It brings up a modal popup window that I have been trying to work out for days now and this was the closest I have been able to come. I added a little asp.net code and an asp.net button and cannot get it to
5
1727
by: John Bonds | last post by:
I'm having a dumb problem I put a few TextBoxes on a page and a few RequiredFieldValidators and a button. For some reason when I click the button, my browser still makes a round trip (postback) to the server and comes back with the proper validation error messages. I want the validation to be CLIENT-SIDE. I'm sure I'm doing something lame. Here's the page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>
11
13921
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to all users (btnSendAll). When user hits enter, I also simulate the effect of clicking button (btnSend). However, what I found btnSend doesn't fire (unless I click on the button). The postback function I call is as follows: function...
4
10440
by: JJ | last post by:
Hi, I need to have a button cause an autopostback. How can I do this? I have textboxs on webform that supply values for a calc but not all will get filled at any particular time. So I need a button that signals once user is done to do an autopostback. How can I do this? Thanks, JJ
9
2742
by: Jonathan Wood | last post by:
Does anyone know of any reason a button on a master page would have no effect? I have a complex HTML page that I'm converting to ASP.NET, and acknowledge I could have something odd that is affecting this. But I'm stuck. My handler is in C# code and the code looks right. But absolutely nothing happens when I click the button. protected void Button1_Click(object sender, EventArgs e)
1
6479
by: Jeremy | last post by:
I've got a GridView control in an updatepanel. Each row has two controls. one control only affects the display of things inside the update panel, so I want it to be asynchronous, but the other control affects things on the rest of the page which aren't inside an update panel. Can I make a control in an update panel stop doing asynchronous postbacks?
8
2181
by: MAX2006 | last post by:
Hi, I am doing some client side javascipt work. I have a handler for window.onUnload event and within the code; I need to know the name of the asp.net button caused the postback. How can I do that? Thank you Max
2
2204
by: Oriane | last post by:
Hello there, I use an Ajax slider extender and I'm try to find a workaround to a known (http://forums.asp.net/p/1092702/2681110.aspx) "bug" of the slider control from the Ajax Control Toolkit. When the user is clicking the mouse on the slider during a partial postback, an error occurs. I have a Ajax Timer which causes a postback every ten seconds. So I would like to disable the slider before the postback...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9014
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8855
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1995
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.