Handling Event To Cause A PostBack
- From: dave_wurtz@xxxxxxxxxxxxxxx
- Date: 25 Jul 2005 05:51:08 -0700
All,
First a little information...
I have a class library that was developed for a GUI application that I
am trying to get to work on my ASP.NET application. The library
essentially is used to query a SQL database. It build the SQL Select
statement based on specified criteria and submits it to the database.
The statement is run on its own thread and when results are returned,
it fires an event, passing a dataset of information as one of the
parameters. In a GUI app, I simply handle the event and display the
results of the dataset.
Here's my problem...
I have a button on my ASP.NET form that instantiates the query class,
defines the criteria, and calls execute (method off the query class).
Because the execute is run on its own worker thread, execution
continues and the button thinks it is done. It appears to be executing
a postback as I see the page be "refreshed". However, when the
query.Execute is done, an event gets fired, which I am handling in a
method that assigns the dataset to a datagrid and I call databind. The
grid, however, is never displayed. It appears that a postback or
something is needed to refresh the page. How can I get this to work?
I am new to ASP.NET development so I hope this makes sense.
Your help is appreciated!
Dave Wurtz
.
- Follow-Ups:
- Re: Handling Event To Cause A PostBack
- From: Eliyahu Goldin
- Re: Handling Event To Cause A PostBack
- From: Rosanne
- Re: Handling Event To Cause A PostBack
- Prev by Date: Re: Setting up a chain
- Next by Date: Re: What needs to be licenced/installed at a MS 2003 Server?
- Previous by thread: Boolean always false????
- Next by thread: Re: Handling Event To Cause A PostBack
- Index(es):
Relevant Pages
|