0

I am having code to redirect to another page in MVC.net using ajax call. Below is the code which I am using for that purpose. But by using that code I am able to redirect to another page in full size. But I want to open the new page in a smaller size like a popup. Can someone please let me know what change need to be done?

onClick: function (e) 
{
    $.ajax
        ({
            type: "GET",
            url: "/Home1/UploadFile", 
            data: { key: selectedKey },
            success: function (result) 
            {
                window.location.href = '@Url.Action("UploadFile", "Home1")';
            },
            error: function (req, status, error) 
            {
                alert('error');
            }
        });
}
Anu
  • 3
  • 1

1 Answers1

0

Have a look at this thread.

I think you can apply the approach to yours.

onclick open window and specific size

cbrr09
  • 189
  • 8