Hi just wondering if there is a way to set up a wait for object in vb.net as
if a put a delay in between the fill and the databind things work ok, but if
not the page is reloading without the updated information,(stored procedure
is taking too long to complete).
the time needed for this delay will change depending on the time the "stored
procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset.
(delay -for loop)
datagrid.DataBind() 'bind the data grid.
This is related to a previous post, that did not include enough information.
thanks.
--
Paul G
Software engineer. 6 1861
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com... Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid.
Paul,
DataAdapter.Fill is synchronous. When it returns, the data have all been
loaded. If a delay is helping things at all, it's for a different reason.
John Saunders
ok thanks for the information. Does seem like it would wait for the
procedure to finish, will have to figure out why the delay seems to be making
things work, the delay is between the fill and the datagrid bind.
"John Saunders" wrote: "Paul" <Pa**@discussions.microsoft.com> wrote in message news:06**********************************@microsof t.com... Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid.
Paul,
DataAdapter.Fill is synchronous. When it returns, the data have all been loaded. If a delay is helping things at all, it's for a different reason.
John Saunders
Hi Paul:
The Fill method is going to block (wait) until it has the results from
the stored procedure. If there is a timeout it will throw an
exception. Any chance you have this code inside of a try catch that is
eating the exception?
Depending on which data provider you are using you can generally set a
timeout threshold (like the CommandTimeout property of a SqlCommand
object).
--
Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 9 Nov 2004 16:14:04 -0800, "Paul"
<Pa**@discussions.microsoft.com> wrote: Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid. This is related to a previous post, that did not include enough information. thanks.
Hi Scott, thanks for the response, not sure what you mean by eating the
exception.
I am using a try, catch and stepped through it, does not seem to create an
exception,
try
several select commands like below
dataadapter.SelectCommand().Parameters("@param1"). Value = somevalue
dataadapter fill
delay
datagrid bind
Catch ex As Exception
s_message = ex.Message()
End Try
The stored procedure builds the query dynamically based on inputs, and uses
the EXEC sp_executesql.
Think I will set the timeout period as well as this has not been set.
"Scott Allen" wrote: Hi Paul:
The Fill method is going to block (wait) until it has the results from the stored procedure. If there is a timeout it will throw an exception. Any chance you have this code inside of a try catch that is eating the exception?
Depending on which data provider you are using you can generally set a timeout threshold (like the CommandTimeout property of a SqlCommand object).
-- Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 9 Nov 2004 16:14:04 -0800, "Paul" <Pa**@discussions.microsoft.com> wrote:
Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid. This is related to a previous post, that did not include enough information. thanks.
Seems to be working now without the delay, had something wrong with a
validator so removed it and added another. Thanks.
"John Saunders" wrote: "Paul" <Pa**@discussions.microsoft.com> wrote in message news:06**********************************@microsof t.com... Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid.
Paul,
DataAdapter.Fill is synchronous. When it returns, the data have all been loaded. If a delay is helping things at all, it's for a different reason.
John Saunders
Seems to be working now without the delay, had something wrong with a
validator so removed it and added another. Thanks.
"Scott Allen" wrote: Hi Paul:
The Fill method is going to block (wait) until it has the results from the stored procedure. If there is a timeout it will throw an exception. Any chance you have this code inside of a try catch that is eating the exception?
Depending on which data provider you are using you can generally set a timeout threshold (like the CommandTimeout property of a SqlCommand object).
-- Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 9 Nov 2004 16:14:04 -0800, "Paul" <Pa**@discussions.microsoft.com> wrote:
Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the updated information,(stored procedure is taking too long to complete).
the time needed for this delay will change depending on the time the "stored procedure" which will vary, takes to excecute.
dataadapter.Fill(dataset, "stored procedure") 'fill the dataset. (delay -for loop) datagrid.DataBind() 'bind the data grid. This is related to a previous post, that did not include enough information. thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robb Gilmore |
last post by:
We inherited an ASP.NET application which is not thread-safe. Many copies of
this application are in the field and customers are having problems, which we
believe is due to the thread safety...
|
by: swin |
last post by:
I've a wrapper class around axBrowser which logs into a site,
navigates to a data page and harvests info from it.
It works fine for a single data page (passing it a key for the data),
but my...
|
by: 6tc1 |
last post by:
Hi all, I have just finished debugging a windows application and have
solved the problem - however, I want to be sure that I understand the
problem before I move on. Before I detail the problem,...
|
by: Coder |
last post by:
Howdy everybody!
How do I do the following...
while (myVary != true){};
Obviously I do not want to use 100% of the processor to stay in this
infinite loop till myVar == true. But wait do I...
|
by: Perecli Manole |
last post by:
I am having some strange thread synchronization problems that require me to
better understand the intricacies of Monitor.Wait/Pulse.
I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock...
|
by: Pexi |
last post by:
Hi,
we have a component developed with VB6 (compiled as a single threaded dll),
which we have used as Application level object for several years in classic
asp without problems. Yet now, when we...
|
by: Bill Nguyen |
last post by:
below is the error message I received when about 2/3 of the process is done.
Where in my code I sould look for?
Thanks
Bill
---------
The CLR has been unable to transition from COM context...
|
by: Nayan |
last post by:
Hi,
If I make a call to function which is in external library, and it goes
into wait sate.. disabling my app to proceed further, how can I break
this state elegantly? So far, I had to kill my...
|
by: Deepak |
last post by:
I am programing a ping application which pings various centers . I
used timer loop and it pings one by one.
Now when i finish pinging one center it should wait for the
ping_completed function to...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |