I am trying to open an paymentEditor.cshtml from subscriberEditor.cshtml. SubscriberEditor is a popup form when a new record or update record clicked on a grid.
This is my code.
SubscriberEditor:
<table>
<tbody>
<tr>
<td>
<script>
$('#MakePayment').click(function () {
var left = ($(window).width() / 2) - (600 / 2),
top = ($(window).height() / 2) - (300 / 2),
popup = window.open("~/PaymentEditor.cshtml", "MakePaymentPopup", "width=600, height=300, top=" + top + ", left=" + left);
return popup;
});
</script>
@(Html.Kendo().Button()
.Name("MakePayment")
.HtmlAttributes( new {type = "button"} )
.Content("Make A Payment")
)
</td>
</tr>
</tbody>
Can anyone can tell me why isn't this working?