Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Issue:How to update Server Control(TextBox) from a thread running in code behind in vb.net.

Reply
Thread Tools

Issue:How to update Server Control(TextBox) from a thread running in code behind in vb.net.

 
 
Jitendra Singh via .NET 247
Guest
Posts: n/a
 
      03-30-2005
If I start a thread in code behind and that thread, after the page got loaded, want to update the value in TextBox(Server control or HTML control). It gives no error but value is not shown on the page. Pls Give the solution If 1 know....Thanks...

--------------------------------
From: Jitendra Singh

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>qcpQlcEjY0+6brxCZ0ZoNA==</Id>
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      03-30-2005
Starting a new Thread causes two paths of execution. The first path which
was the Request into your webserver completes the request and thus it's long
gone by the time your second thread tries to update a TextBox on the page.
You're starting to play with fire, so be careful until you've spent a lot
of time testing and understanding what you're doing.

There's a good article by Fritz that discusses how to create asychronous
pages which might help get you going down the right track:

http://msdn.microsoft.com/msdnmag/is...g/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen



> If I start a thread in code behind and that thread, after the page got
> loaded, want to update the value in TextBox(Server control or HTML
> control). It gives no error but value is not shown on the page. Pls
> Give the solution If 1 know....Thanks...
>
> --------------------------------
> From: Jitendra Singh
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
> <Id>qcpQlcEjY0+6brxCZ0ZoNA==</Id>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
Code-Behind Pain in the Behind! Daniel Manes ASP .Net 11 06-10-2005 09:47 PM
Update server side asp variable in page behind code =?Utf-8?B?Um9iZXJ0?= ASP .Net 1 02-04-2004 08:50 PM
How to Update Remote Web Server with New Code-behind files Chris ASP .Net 4 01-30-2004 03:15 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM



Advertisments