H
Hrvoje Vrbanc
Hello all!
As I have only recently started to use native ASP.NET 2.0 data access
controls (and found them to be very powerful), I have one question that I
was unable to find the answer to:
- I have an ASPX page with a SqlDataSource control with Select, Update and
Delete calls to stored procedures and a GridView bound to SqlDataSource,
- everything works fine, the date gets displayed when the page is loaded and
Delete ad Update also work OK.
Now, I want the page not to display any data until a button is clicked, or
better said until a button is clicked and a value from a TextBox is passed
as a Select statement parameter to the SqlDataSource.
How to prevent the GridView from filling onLoad and how to refresh it on
Button click?
Thank you in advance,
Hrvoje
As I have only recently started to use native ASP.NET 2.0 data access
controls (and found them to be very powerful), I have one question that I
was unable to find the answer to:
- I have an ASPX page with a SqlDataSource control with Select, Update and
Delete calls to stored procedures and a GridView bound to SqlDataSource,
- everything works fine, the date gets displayed when the page is loaded and
Delete ad Update also work OK.
Now, I want the page not to display any data until a button is clicked, or
better said until a button is clicked and a value from a TextBox is passed
as a Select statement parameter to the SqlDataSource.
How to prevent the GridView from filling onLoad and how to refresh it on
Button click?
Thank you in advance,
Hrvoje