Populating a field by selecting a dropdowlist via popup

Asked

Viewed 36 times

2

I need to open a pop-up through the selection event of a dropdownlist in an application .net and in this way I popularized the field of the first screen with the selection of the option displayed by popup. I confess that I am half layman with the javascript and from what I checked can be used the Page.ClientScript, but I would like guidance on how to work with this or other method that heals my need.

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

Thank you for your attention.

1 answer

1


The simplest way is using jQuery. The 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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.