problem about datagrid

Discussion in 'ASP .Net Datagrid Control' started by angus, May 6, 2004.

  1. angus

    angus Guest

    Hello all,

    I have a problem in using the DataGrid.

    In my web form, i've put a <asp:button/> button, if it is clicked, a
    function will be called to connect to the database, get the data and return
    as a dataset. Finally, a DataGrid will be "binded" by the DataSet.

    that is....something like
    Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
    System.EventArgs) Handles txtSubmit.Click

    myDataGrid.DataSource = db.getDataSet()

    myDataGrid.DataBind()

    End Sub

    i find that it works prefectly for the first time, however, after the first
    time, the button doesn't have any response even i click it again and again

    Regards,
    Angus
     
    angus, May 6, 2004
    #1
    1. Advertising

  2. angus

    angus Guest

    got it.....
    the form should be use method="POST"

    i've used method="GET" before.

    "angus" <> wrote in message
    news:uBEI%23%...
    > Hello all,
    >
    > I have a problem in using the DataGrid.
    >
    > In my web form, i've put a <asp:button/> button, if it is clicked, a
    > function will be called to connect to the database, get the data and

    return
    > as a dataset. Finally, a DataGrid will be "binded" by the DataSet.
    >
    > that is....something like
    > Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles txtSubmit.Click
    >
    > myDataGrid.DataSource = db.getDataSet()
    >
    > myDataGrid.DataBind()
    >
    > End Sub
    >
    > i find that it works prefectly for the first time, however, after the

    first
    > time, the button doesn't have any response even i click it again and again
    >
    > Regards,
    > Angus
    >
    >
    >
     
    angus, May 6, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sajvargs
    Replies:
    0
    Views:
    387
    sajvargs
    Feb 20, 2005
  2. DC
    Replies:
    2
    Views:
    618
  3. Andreas Klemt
    Replies:
    0
    Views:
    313
    Andreas Klemt
    Oct 8, 2003
  4. roberto
    Replies:
    1
    Views:
    230
    roberto
    Feb 17, 2005
  5. John Walsch
    Replies:
    0
    Views:
    203
    John Walsch
    Jul 9, 2004
Loading...

Share This Page