c# - How to call js file function from code behind page -
i have next function in .js file , need phone call code behind page after saving record.
i have registered scipt file in aspx page
aspx file
<script type="text/javascript" src="/scripts/visit-flash-report.js"></script>
.js file
function reloaddoctab() { alert('hello'); $('#frmdocs').attr('src', $('#frmdocs').attr('src')); }
code behind page
i have tried function not working
page.clientscript.registeronsubmitstatement(me.[gettype](), "reload function", "return reloaddoctab();")
if understand trying do. want save record on postback when page reloads phone call javascript function.
try this:
pagebody.attributes.add("onload", "reloaddoctab()");
c# javascript jquery asp.net vb.net
No comments:
Post a Comment