I am trying to redirect to current page using javascript from server side using this code ..
ScriptManager.RegisterStartupScript(this, this.GetType(), "pop", "<script>alert('Record saved with claim number " + lastid + ".');var currentPageUrl =document.location.toString().toLowerCase();window.location.assign('currentPageUrl')</script>", false);
But it does not work. How can I make it work?