I'm trying to pass this.href from my asp.net code behind to JavaScript. When I run the code, the value appears as 'undefined' in the alert message. Can anyone help me with this issue?
Page.ClientScript.RegisterStartupScript(this.GetType(), "Sample", "Callscript(this.href);", true);
function Callscript(href)
{
alert(href);
}