What I am doing is the following:
In a form of Asp.Net
a user presses a button, which opens a modal window of Bootstrap
like the one attached in the following image:
When that modal window is open, the user has the possibility to capture a BP number or a BP name and perform the search, from which the results should be displayed in a gridview
with the matches. The problem comes here . We agree that when the user presses the button Search
of the modal window, so that the results are shown, a Postback
is made to populate the gridview
with the coincidences.
What I want to do is that the modal window remains open to show the results. Now what it is doing to me is that the modal window as such disappears, but the background remains active, as I show in the following capture:
So what I did within the event of btnSearchBP_Click
, was to add the following line:
ScriptManager.RegisterStartupScript(Me, Me.GetType(), "modal", "$('#addModal').modal('show');", True)
With that line you already show me the well-ordered information in grid
, but it adds an "extra fund" that does not disappear at the time of making my BP selection.
So, what is the correct way to make the modal window persistent while loading the information in gridview
?