473,402 Members | 2,055 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,402 software developers and data experts.

Client callback problem

Hi all,

I'm trying to get a client callback to work and am able to get it to work
when I comment out a section of other, non-related-client-callback code.

Within my "If not page.ispostback" section, I do a databind on a gridview as
well as a dropdown box. The callback itself is fired off in an "onchange"
event of a completely different textbox. If I comment out the
object.Databind() lines for botht the gridview and dropdown box, the call
back works as expected but if I include the Databind lines, an error is
generated and if I alert the error in my Javascript, I simply get the whole
HTML page.

Any ideas what could be happening here and more importantly how to fix this?

Regards
John.
Nov 19 '05 #1
1 1084
You can also check for IsCallback to determine if your page/control is being
executed as a result of a script callback.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi all,

I'm trying to get a client callback to work and am able to get it to
work when I comment out a section of other,
non-related-client-callback code.

Within my "If not page.ispostback" section, I do a databind on a
gridview as well as a dropdown box. The callback itself is fired off
in an "onchange" event of a completely different textbox. If I comment
out the object.Databind() lines for botht the gridview and dropdown
box, the call back works as expected but if I include the Databind
lines, an error is generated and if I alert the error in my
Javascript, I simply get the whole HTML page.

Any ideas what could be happening here and more importantly how to fix
this?

Regards
John.

Nov 19 '05 #2

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

Similar topics

2
by: Jo Voordeckers | last post by:
Hello all, I'm pretty new to the Java newsgroups so I apologize for dropping this into several maybe offtopic groups. I'm sorry! So on to my problem... I've come to a point in our RMI...
2
by: jslaybaugh | last post by:
I am trying to bind to a GridView or DetailsView after a callback using the ClientCallback Manager in the new .NET 2.0 framework. See below for the HTML followed by the VB code: <html...
0
by: skberen | last post by:
Issue: We have a web user control on a web page (aspx) that uses the new ASP.Net 2 feature Client Callback. The web user control is using a CheckBoxList control and button control to allow the...
0
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have an ascx file that dynamically loads other ascx files. each of these ascx files need to perform client callback functions. It seems that when i try and break out all the javascript code into...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
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...

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.