Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
T-Bone #1
databinding after page_load
Hi,
I'm working on a webpage which starts with a rather timeconsuming
database transaction. (two different .mdb's from different MSAccess
versions :-().
IN order to make things acceptable I want to use a progressbar. I use
a webcontrol for that from Farside Web Progressbar.
It works as follows:
Instead of doing the database transaction in the page_load I make my
own Sub named PerformTask which generates a DataSet. I want to bind
that DataSet to a datagrid on my webpage.
I call PerformTask from the aspx page with <% call PerformTask %> so
it runs after Page_Load. Otherwise the progressbar is not showing.
However when calling databind from the PerformTask routine which runs
after the page_load event the datagrid is not showing up. Is there a
way to bind the data after page_load an display the datagrid.
T-Bone Guest
-
Page_Load issue
Hi, I am relatively knew to the ASP .Net world, so I may be going about this all wrong, but I need to figure this out anyway. I am using a IE... -
DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'"
I am creating a custom column that inherits from DataColumnGrid. When I attempt Databind to a property of the custom column, I get the the error: ... -
Why bad with Page_Load
I have an XML Web Servic (.asmx) to generate an Excel file, and it works as expected. However, here is the bad thing, - if this web service is... -
page_load
I've got an aspx and I need that his page_load event be fired every time I enter the page. Actually I put a break point in the first line in the... -
progress bar and page_load
Hi Basically I call a page that does a very long op But I need to display a progress bar no frames There is an old trick in html and asp ... -
Alvin Bruney [MVP] #2
Re: databinding after page_load
You may search this newsgroup for a way to create a splash screen effect.
Using your approach the progress bar will not show up untill all processing
is done.
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
[url]http://tinyurl.com/27cok[/url]
"T-Bone" <sub@pox.nl> wrote in message
news:4378c773.0404210043.5a883051@posting.google.c om...> Hi,
> I'm working on a webpage which starts with a rather timeconsuming
> database transaction. (two different .mdb's from different MSAccess
> versions :-().
> IN order to make things acceptable I want to use a progressbar. I use
> a webcontrol for that from Farside Web Progressbar.
>
> It works as follows:
>
> Instead of doing the database transaction in the page_load I make my
> own Sub named PerformTask which generates a DataSet. I want to bind
> that DataSet to a datagrid on my webpage.
> I call PerformTask from the aspx page with <% call PerformTask %> so
> it runs after Page_Load. Otherwise the progressbar is not showing.
>
> However when calling databind from the PerformTask routine which runs
> after the page_load event the datagrid is not showing up. Is there a
> way to bind the data after page_load an display the datagrid.
Alvin Bruney [MVP] Guest
-
P K #3
Re: databinding after page_load
O yes, the progressbar will show up because the PerformTask routine is
executed after page_load.
The page_load makes the progressbar show up. It's a seperate control.
After the page_load the PerformTask routine is executed which does the
timeconsuming transaction and makes the progressbar advance. That works
fine.
The only problem is that the datagrid will not show up when databind is
executed from the PerformTask Sub.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
P K Guest
-
Alvin Bruney [MVP] #4
Re: databinding after page_load
well, you need to provide the whole picture next time you post and not just
parts of it. The datagrid only shows up if there is data. You can test your
dataset to make sure it has data before you bind. Consider
if(ds != null && ds.Tables[0].Rows.Count > )
then bind here
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
[url]http://tinyurl.com/27cok[/url]
"P K" <sub@pox.nl> wrote in message
news:efaDhL%23JEHA.2716@tk2msftngp13.phx.gbl...>O yes, the progressbar will show up because the PerformTask routine is
> executed after page_load.
> The page_load makes the progressbar show up. It's a seperate control.
> After the page_load the PerformTask routine is executed which does the
> timeconsuming transaction and makes the progressbar advance. That works
> fine.
> The only problem is that the datagrid will not show up when databind is
> executed from the PerformTask Sub.
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
>
Alvin Bruney [MVP] Guest



Reply With Quote

