Hello friends ,
I have Created JavaScript Function in Js File Like
function RecordNotFound() {
alert("Rocord Not Found");
}
So how Can Call this Function C# Class ?
public class RecordNotFound
{
?? JavaScript Function
}
Thanks .
Raja TRank #685 · 3.5K reputationPosted Feb 24, 2016, 1:17 AM EST
Anu VRank #1,282 · 1.3K reputationPosted Feb 24, 2016, 1:21 AM EST
Amit KumarRank #459 · 5.4K reputationPosted Feb 24, 2016, 1:34 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 24, 2016, 2:00 AM EST
ClientScript.RegisterStartupScript(this.GetType(), "Function()", sb.ToString(), true);Ravi PatelRank #439 · 5.7K reputationPosted Feb 24, 2016, 2:15 AM EST
code behind
{
ScriptManager.RegisterStartupScript(this, GetType(), "myFunction", "myFunction();", true);
}