aspxgridview - Re-Binding Gridview with SQL SelectCommand -


i have gridview control populated sql query. have following code in void page_load()

    response.write("debug: " + qry); // debugging     systemlist_sql.selectcommand = qry;     systemlist.databind(); 

the data displayed in gridview fine, when submit page button control debug query updated new query info, not bind gridview on reload. code button below.

    <asp:button id="btngenerate" runat="server" text="generate report"/> 

i'm sure overlooking basic here, but... can't see it.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -