How to pass the parameter to same page using java script in Asp.net

asp.net, javascript

Solution

window.location.href = window.location.href + "?ID=" + someid ;

You need to append window.location.href

Problem

How to pass the parameter to same page using java script in Asp.net `top.location.href = '/IFGE/DeleteAllPrice/' + id;` is working fine for redirecting to other pages but not working for redirecting to same page

Original source