On loading the page I want to pass a value to my javascript function from a server side variable.
I cannot seem to get it to work this is what I have:
Asp.Ne
Your string blah needs to be a public property of your Page class, not a local variable within Page_Load. You need to learn about scoping.
string blah
Page
Page_Load
public class MyPage { public string blah { get; set; } protected void Page_Load(object sender, EventArgs e) { blah = "ER432"; } }