c# - URL working in dev doesn't work on production server -
i have stored proc has url in result set , onclick opens new page url working fine on box not on production server.
here aspx:
function navigateonclick(sender, eventargs) { try { var row = eventargs.get_item().get_row().get_index(); var url = sender.get_rows().get_row(row).get_cell(0).get_text(); window.open(url); } catch (e) { } }
the url format ../cellsiteedit.aspx?cellsiteid=bhjhj
. opens new window with
/cellsiteedit.aspx?cellsiteid=08c05834
but url should
/livelease/cellsiteedit.aspx?cellsiteid=08c05
and getting file or directory not found error. works fine on box.
try
window.open(regex.replace(url, "../", ""));
Comments
Post a Comment