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