473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Callback not working following a postback

ozy
Hi All,

I have a aspnet page that collects some simple data from the user. I
have implemented 1 of the fields as a "cascading combo box" (a pair of
drop down lists, where the second is populated based on the selection
made on the first). In ASP1.1 this was implemented using a postback
which occured when the user changed the first combo.

Now ASP2.0 has arrived, I have changed this implementation to use the
new Callback feature. This works great when you first get to the page.
However, if the user hits the save button (or does any thing else that
causes a PostBack) subsequent Callbacks do not occur as expected.

This is what I am seeing:
The client triggers the Callback. The Page_Load event fires on the
server, but the Page.IsCallback property returns false and neither the
RaiseCallbackEvent or the GetCallbackResult methods are called.

Any ideas?

Thanks in advance

Darren

May 3 '06 #1
1 1472
ozy
OK I got there in the end. The page i was using also had
SmartNavigation="true" in the Page directive. This attribute (as far as
I can tell) has been deprecated in ASP.Net2.0. When I set this
attribute to false all my callbacks work as expected. The reason I had
the SmartNavigation set to true in the first place was because i wanted
to maintain the scroll position of the page on postback. I was able to
use the new MaintainScrollPositionOnPostback attribute of the page
directive instead, and all is working fine now!

Phew a happy ending :-)

May 4 '06 #2

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

Similar topics

4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
3
by: Nahrin | last post by:
I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to get the result back from server without postback the page. Problem is when seesion expires or authentication times out,...
0
by: Roy | last post by:
The following code - straight out of the MSDN help - uses ASP.NET 2.0's Client Callback features, and yet, ALWAYS postback to the page. Why? I expected no postbacks to occur. <%@ Page...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
3
by: Martin | last post by:
Hi, I have an aspx page with two dropdownlist controls. I update the options in the second ddl based on selection made in the first. I do this with the ICallbackEventHandler interface, as per...
1
by: Ibrahim. | last post by:
Hi, I'm getting the following error when requesting asp.net page. Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in...
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.