I tried to call js function from codebehind like
<if(result == true)
MyJsFunction();
how i can do this?
I tried like
string rowTestHide = @" <script type='text/javascript'>function showSuccessMessage(){
showNotification({
type : 'success',
message: 'This is a sample success notification'
});
}
</script>";
ClientScript.RegisterStartupScript(null,"rowTest", rowTestHide);
but it doesn’t work
You don’t want the function… you just want to run it right away. Like this: