How do I pass this.href from asp.net code behind? Here is what I have, and in javascript I added a alert to see the value and it says ‘undefined’
Page.ClientScript.RegisterStartupScript(this.GetType(), "Sample", "Callscript(this.href);", true);
function Callscript(href)
{
alert(href);
}
hrefis not a property of the global object. i believe you are looking forwindow.location.href: