I have a question that seems like it should have a simple answer, but
I can't seem to find it by searching...
Anyway, I'm trying to capture the IsPostBack event when I select an
item within an UpdatePanel. I don't want items running during
postback (list, grid population, etc) events - pretty standard: If
IsPostBack Then Exit Sub
But, since AJAX doesn't technically postback (?), the IsPostBack is
coming back false...
So, how can I capture the Async postback done by AJAX? Is there any
IsAsyncPostBack keyword and what library is it in?
Page load process:
1. Load drop down menus
2. Load data grids
"Postback process"
1. Select datagrid row
2. Populate several fields below with further information
When I select the datagrid row, IsPostBack remains false. I've tried
splitting into multiple update panels but now they are all in a
singular panel.
TIA for the help!
George Ter-Saakov - 07 Apr 2008 18:01 GMT
AJAX call runs as a POST back. Just test it...
George.
>I have a question that seems like it should have a simple answer, but
> I can't seem to find it by searching...
[quoted text clipped - 23 lines]
>
> TIA for the help!
bruce barker - 07 Apr 2008 18:12 GMT
an update panel async callback does set IsPostback true (as this is a just a
test for __Viewstate and the callback sends all form fields). you can also
check the scriptmanger.IsInAsyncPostBack
-- bruce (sqlwork.com)
> I have a question that seems like it should have a simple answer, but
> I can't seem to find it by searching...
[quoted text clipped - 23 lines]
>
> TIA for the help!