Basic question about jquery and .NET

I want to make a page so that I can select filters in the "jQuery popup", but I don't know how to get the results.

Suppose I have a ListView list page and I want to select filters for it (maybe with multiple selections from the list), so I create another ASPX and open it with jquery (actually jqModal ) via ajax, the user selects filters and accepts.

How do I get this selection in order to reinstall my ListView?

(...)

I just selected the URL for the link above in the jQuery popup, which is exactly what I want to do ... how is it done?

0


source to share


1 answer


I think the simplest solution would be to have an asp button with style = "display: none". In a javascript function that closes the popup, fake a click on that button. Then you have a regular event handler to reset your list.

HTML:

<div class="jqmWindow" id="dialog">
    <asp:ListView runat="server" id="lvFilter" />
</div>
<asp:Button runat="server" id="btnFilter" OnClick="btnFilter_Click" style="disaply:none" />

      

JavaScript:



$('#dialog').jqm({
    onHide:function() {
      $("#<%= btnFilter.ClientID %>").click();
    }
});

      

Server side:

btnFilter_Click for normal filtering.

0


source







All Articles