Hi...
I have a Javascript function in my test.aspx as follow:-
<script language="Javas cript">
function confirm_save()
{
if (confirm("Are you sure you want to save this changed?")==tru e)
return true;
else
return false;
}
</script>
I have a Edit, Save, Cancel command on my datagrid, when click Save, -> OnUpdateCommand ="save_data" ,
the save_data function located in test.aspx.cs, code behind,
I don't want directly save my data, I plan to insert the javascript function above to the save_data function, so I need to call the javascript from code behind
Example: In test.aspx.cs
I have a function
public void save_data(){
------------ CAN I CALL A JAVASCRIPT HERE?
}
anyone please help
I have a Javascript function in my test.aspx as follow:-
<script language="Javas cript">
function confirm_save()
{
if (confirm("Are you sure you want to save this changed?")==tru e)
return true;
else
return false;
}
</script>
I have a Edit, Save, Cancel command on my datagrid, when click Save, -> OnUpdateCommand ="save_data" ,
the save_data function located in test.aspx.cs, code behind,
I don't want directly save my data, I plan to insert the javascript function above to the save_data function, so I need to call the javascript from code behind
Example: In test.aspx.cs
I have a function
public void save_data(){
------------ CAN I CALL A JAVASCRIPT HERE?
}
anyone please help
Comment