1) create a hidden control in your page
<asp:HiddenField ID="hdnfld_availableTags" runat="server" />
in the code behind assign values to it as
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
hdnfld_availableTags.Value = "'ActionScript','AppleScript','Asp','BASIC','C','C++','Clojure','COBOL'";
}
}
and in
javascript
<script type="text/javascript">
$(function () {
var item = $('#hdnfld_availableTags').val();
var ar = item.split(',');
alert(ar);
});
</script>