Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
SqlDataSource do query twice for each postback
posted

Hi,

I'm working on an enquiry screen with a WebGrid, some textboxes and a search button. When I click on the search button, I found that the DataSource do query twice.

The first query happens before search button click event and the second query happens after. I don't know why DataSource need to do query twice. Does anyone know how to stop the first query?

Best,

Adam

Parents Reply Children
No Data