Calling JavaScript Function From CodeBehind
on client or html page
write java script code
<script>
function MyFunction() {
window.print();
}
</script>
Use This method on you asp server page
Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);
Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);
No comments:
Post a Comment