Hi, I'm having troubles with $get.
I have a <asp:HiddenField> on my page and I want to read its value using Javascript.
the HiddenField's ID is 'reloadUrl'. I tried the following methods:
var control = $get("reloadUrl");
var control = $get("<%= reloadUrl.ClientID %>");
var control = $get("<%= this.reloadUrl.ClientID %>");
But all of them return the following message: "$get(...) is null"
My page is a content page and the HiddenField is nested in two or three controls.
What can I do?
PS: I have a RadAjaxManagerProxy on my content page and a RadAjaxManager & ScriptManager on my master page.
May be I have to use another function provided my RadAjaxManager..?
I have a <asp:HiddenField> on my page and I want to read its value using Javascript.
the HiddenField's ID is 'reloadUrl'. I tried the following methods:
var control = $get("reloadUrl");
var control = $get("<%= reloadUrl.ClientID %>");
var control = $get("<%= this.reloadUrl.ClientID %>");
But all of them return the following message: "$get(...) is null"
My page is a content page and the HiddenField is nested in two or three controls.
What can I do?
PS: I have a RadAjaxManagerProxy on my content page and a RadAjaxManager & ScriptManager on my master page.
May be I have to use another function provided my RadAjaxManager..?