Author: asli2021 | Posted on: 7/22/2009 10:11:15 AM | Views : 1059

Hi,
I want to run two different query on the same page. By clicking button1, query1 will be run and gridview1 will be displayed and By clicking button2, query2 will be run and gridview2 will be displayed. 
I could do this using MultiView.


Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click MultiView1.SetActiveView(All) End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click MultiView1.SetActiveView(Search) End Sub

I am wondering is there a better way to do something like this.
Right now, my database is not large and everthing is fine, but ...

Go to the complete details ...