Populating a field by selecting a dropdowlist through popup

2

I need to open a popup through the event of selecting a dropdownlist in a .net application and in this way populate the field of the first screen with the selection of the option displayed by popup . I confess that I am somewhat lazy with the javascript and from what I have checked the Page.ClientScript can be used, however I would like an orientation how to work with this method or another that heals my need.

I need a way to capture the selection of a dropdownlist to open a popup.

Thanks for your attention.

    
asked by anonymous 27.08.2015 / 16:17

1 answer

1

The simplest way is by using jQuery . JQuery can be obtained here .

To open a pop-up, you can intercept the pop-up change event and call the window.

<script>
    $('#meupopup').change(function(e) {
           window.open("http://minhapagina.aspx",null,
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
        });

    $(document).ready(function(){
        $('#meupopup').trigger('change');
    });
</script>
    
27.08.2015 / 16:25