Modal search popup to replace an ASP.NET dropdown control

I am looking for the simplest way for a modal search box to appear on top of an ASP.NET 3.5 application to search for values ​​for a field. I have a screen for users to add courses; Users should be able to select instructors by looking for instructors in a pop-up window.

So - the popup will have a text box and a gridview with the results; pressing the "select" button as a result will fill in the instructor field in the calling form.

What is the easiest way to achieve this?

+3
source share
2 answers

jQuery UserControl - yensdesign.

UserControl, , . , . , .

?

+1

, javascript , , :

function fnFieldSearch(searchURL)
{
    var wndSearch = window.open(searchURL,"SearchPopup","toolbar=yes,width=600,height=400,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no");
    wndSearch.focus();
}

javascript :

window.opener.document.FormName.ControlName.value = 'whatever';
0

Source: https://habr.com/ru/post/1707903/


All Articles