I have a button, which when presses populates a grid with data. If I add an ObjectDataSource, and bind the grid to it, it will populate the grid when the page loads. But I need to populate the grid only if the button is pressed, because it is a lengthy opperation. How should I accomplish this
ObjectDataSource - how can I bind only if button pressed
1.5k Views Asked by Ryan At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in BINDING
- Binding to "this.property" object in VisualStateMenager
- How can I bind visibility of a datagrid column on a custom wpf control?
- Ext JS 5 Data Binding Combobox
- Why am I able to bind <f:actionListener> to an arbitrary method if it's not supported by JSF?
- How do I reuse an intermediate value in chain of Haskell Either binds?
- Binding warning when scrolling horizontally in datagrid
- WPF targetinvocationexception was unhandled when try to populate ObservableCollection
- Bind the result of list.contains() method
- Binding a button to both a function and close event wpf
- Kendo nested arrays binding troubles
- Binding radio buttons in an ng-repeat with angular
- GridViewColumn.Width binding and double-click to autosize column
- Angular : displaying elements in navbar after logged in
- WPF use one ViewModel for multiple UserControls
- Scala: binding time
Related Questions in OBJECTDATASOURCE
- Combox Display member Not Showing using list Object c#
- Create dummy data type so I can have a DataProvider to my ItemsControl in xaml
- A RDLC subreport without subreport processing event
- How to insert into ObjectDataSource a list of items from code behind , and NOT from the aspx?
- telerik report objectdatasource with dependency ninject
- Search between 2 dates and update a GridView with ObjectDataSource
- Gridview using objectdatasource displays too many pages
- ObjectDataSource generic parameterless select method
- Asp.net: Sorting with gridview and objectDataSource
- Two way sorting in GridView using Object Data Source
- if i have `<asp:UpdatePanel ...` than there is no alert message poup
- ObjectDataSource paging and extra parameters
- Configuring the ObjectDataSource for Sorting
- deleting a row with Objectdatasource and gridview
- ObjectDataSource - how can I bind only if button pressed
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
add an event handler to ObjectDataSource's Selecting event like this:
and put a button on page, when it was clicked a postback will occur and ObjectDataSource will return data successfully.