Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,


I'm new for asp.net mvc3.Now i am developing a mvc3 application.In that, i want to open a pop up when click on "new parameter" link and in that popup, some text box's are there.we have to fill the text box's with data and that data will display into the Gridview.
can anyone tel me how to fix it?

Thank you in advance....
Posted

1 solution

Looking something like this: How to create a modal popup in ASP.NET MVC 3 using Jquery [^]

Roughly, something like this[^]:
HTML
@Html.ActionLink("OpenPopup", "OpenPopup", new { id = model.Id }, new{ @class = "dialog"} )

XML
<script type="text/javascript">
    $(function (){
        $('a.dialog').click(function() {
            var url = $(this).attr('href');
            var dialog = $('<div style="display:none"></div>').appendTo('body');
            dialog.load(url, {}, function (responseText, textStatus, XMLHttpRequest) {
                dialog.dialog({
                    close: function(event, ui) {
                        dialog.remove();
                    }
                });
            });
            return false;
        });
    });
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900