In Page Load event
Dim scripttag = New HtmlGenericControl("script")
scripttag.Attributes.Add("type",
"text/javascript")
scripttag.InnerHtml = "var
controls="[{‘key1’:’value1’, ‘key2’:’value2’}, {="[{‘key1’:’value3’, ‘key2’:’value4’}]"
Page.Header.Controls.Add(scripttag)