Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

AJAX and IsPostBack

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BM - 07 Apr 2008 17:25 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.