While cruising through the script files that help to implement script
callbacks in 2.0, I noticed that there is no code path to handle a return
string that doesn't match the parsing logic - it just falls through and
nothing happens.
My scenario is this: My web app session times out/application error occurs
when I make my script callback...my application 'normally' redirects users to
the login form and/or error page (HTTP 302, etc..)...but the script callback
functions (specifically, the parsing logic in WebForm_ExecuteCallback) do not
handle any thing other than expected results (looking only for the 's' or 'e'
prefixes), nor do they check the response codes explicitly. This was easy
when using the objects 'by hand', but....
Is there a workaround for this in 2.0 callbacks (other than using my own
libraries), and has this been addressed in Atlas????
TIA,
Mike 1 2068
Atlas addresses most of these issues. If you are looking for a Remote
Scripting ("AJAX") infrastructure that is lightweight and well - thought out,
to handlle this kind of requirement in the meantime, and works with both
ASP.NET 1.1 and 2.0, take a look at Jason Diamond's "Anthem.Net" which can be
found at Sourceforge.net
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"MichaelY" wrote: While cruising through the script files that help to implement script callbacks in 2.0, I noticed that there is no code path to handle a return string that doesn't match the parsing logic - it just falls through and nothing happens.
My scenario is this: My web app session times out/application error occurs when I make my script callback...my application 'normally' redirects users to the login form and/or error page (HTTP 302, etc..)...but the script callback functions (specifically, the parsing logic in WebForm_ExecuteCallback) do not handle any thing other than expected results (looking only for the 's' or 'e' prefixes), nor do they check the response codes explicitly. This was easy when using the objects 'by hand', but....
Is there a workaround for this in 2.0 callbacks (other than using my own libraries), and has this been addressed in Atlas????
TIA, Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Melissa Wallis |
last post by:
I have a class with 5 callbacks. Two of the callbacks work fine but the
others don't. The main difference is that the callbacks that don't work are
composed of a sequence of structs. I noticed a...
|
by: Amy L. |
last post by:
I have a windows service where I would like to launch a script (bat, cmd,
vbs, exe, etc) from the service. This script should execute in the
background and not require any input from the user...
|
by: ck388 |
last post by:
For some reason when I enable the callback feature of the gridview I
still get a page refresh, that is it seems like there is a postback
that occurs, not a callback which is just supposed to update...
|
by: Christopher Jastram |
last post by:
I'm a self-taught programmer, so this might be a pretty dumb question.
If it is, please point me in the right direction and I shall
apologize profusely.
I have a question regarding C++ and...
|
by: anilkoli |
last post by:
I want clear cut idea about callbacks and also of delegates
I have doughts about callbacks,
I feel callbacks are used for
1. recursion
2. dynamically calling a perticular method out of
many...
|
by: zholthran |
last post by:
Hi folks,
after reading several threads on this issue (-> subject) I fear that I
got a problem that cannot easily be solved by the offered workarounds
in an acceptable way, at least not with my...
|
by: kelly |
last post by:
Hi
I have an app where I have 2 dropdown lists (state and city) and a Save
button. When a user selects a value from the state dropdown list, I
use script callback to populate the data for the...
|
by: aBs0lut30 |
last post by:
Hi Guys, I am working on a site and recently added several client
callbacks to the project. Everything works GREAT while debugging the
site in visual studio. Last night I copied the site up to our...
|
by: =?Utf-8?B?TG93bGFuZGVy?= |
last post by:
Hello,
I've built a web application that uses client script callbacks. It is used
on a large network with a large variety of user OSes and IE versions. It was
tested on IE 6 on different setups...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |