The user enters a text in my webpage and clicks on the "search" button. Only on this button click I want to fect data by calling the SQL server stored procedure. I use objectdatasource to bind data to listview or gridview. how can I fecth the data in the object datasource only on the button click. Please help
I am sorry I should have been more specific with my question. I am already doing somehting like what stormack has explained. But I need to move to an object datasource since I am using server side paging.
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.