I am trying fetch c# value in to JavaScript any body can help me to resolve this.
ASP.NET CODE
<asp:Button runat="server" Text="Submit" class="btn btn-success btn-lg" ID="btnsubmit" OnClick="btnsubmit_Click"/>
C# code
protected void btnsubmit_Click(object sender, EventArgs e)
{
string abc="xyz";
// From here i need to Call JavaScript Function
// suppose code is like myfunction(abc)<-Java script function
myfunction(abc);
}
Javascript
<script type="javascript/text">
function myfunction(abc){
var val = abc
console.log(val);
// here i want to get abc value is this possible
}
</script>