problem about datagrid

Discussion in 'ASP .Net Building Controls' 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
     
    angus, May 6, 2004
    #1
    1. Advertisements

  2. angus

    angus Guest

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

    i've used method="GET" before.
     
    angus, May 6, 2004
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
Loading...