I have a master page MainMaster.master
.
Also have one aspx page name as AllDetails.aspx
which is inherited from
MainMaster.Master
page.
I have button on AllDetails.aspx
, as like below-
<button class="button" type="submit" onclick="redirect(' + Id + ');">View Details</button>
On click above button i am calling below function redirect
function redirect(id)
{
jQuery(xml).find('HK').each(function (i, v)
{
window.location.href = "../View/AllDetails.aspx?Uid=" + id;
});
}
As per the above function i am trying to redirect to AllDetails.aspx
page.
But unfortunately its not redirecting. I checked this function in firbug and tried to debug line by line its working. If i remove the breakpoint and try directly its only refreshing current page.
Please guide.