HighTechTalks DotNet Forums  

Update interface after requesting input from a postback event hand

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Update interface after requesting input from a postback event hand in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ken Adeniji
 
Posts: n/a

Default Update interface after requesting input from a postback event hand - 12-30-2007 , 07:09 PM






I read, How can I update my user interface from a thread that did not create
it?
http://blogs.msdn.com/csharpfaq/arch.../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.

Reply With Quote
  #2  
Old   
Alvin Bruney [MVP]
 
Posts: n/a

Default Re: Update interface after requesting input from a postback event hand - 12-30-2007 , 09:15 PM






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.

--
--
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

"Ken Adeniji" <KenAdeniji (AT) discussions (DOT) microsoft.com> wrote

Quote:
I read, How can I update my user interface from a thread that did not
create
it?
http://blogs.msdn.com/csharpfaq/arch.../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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.