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 / December 2007

Tip: Looking for answers? Try searching our database.

Update interface after requesting input from a postback event hand

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Adeniji - 31 Dec 2007 00:09 GMT
I read, How can I update my user interface from a thread that did not create
it?
http://blogs.msdn.com/csharpfaq/archive/2004/03/17/91685.aspx

I have a postback event handler, that requests user input via
JavaScript confirm methods to process conditional steps.

After completing asynchronous processing, binding the result sets to
the gridview and dropdownlist controls, and issuing the
UpdatePanel update command, changes are not reflected.

Since I require input, I chose to separate the event handlers,
and invoke each via button click events.
Alvin Bruney [MVP] - 31 Dec 2007 02:15 GMT
The threading issue you read about does not apply here since browser
controls are not 'windows objects' in the strict sense of the word. I
believe all you need do is call refresh on the grid. Come to think of it,
the grid should update automatically if it is inside an update panel.
Perform simple test by updating a text box asynchronously to see if that
works. Then put it inside an update panel and oberve the behavior, make
adjustments as necessary.

Signature

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

>I read, How can I update my user interface from a thread that did not
>create
[quoted text clipped - 10 lines]
> Since I require input, I chose to separate the event handlers,
> and invoke each via button click events.

Rate this thread:







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.