databinding after page_load

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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: ...
    3. 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...
    4. 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...
    5. 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 ...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139