Click here to Skip to main content
15,610,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

Please tell me that,
I want to access Hiddenfield value from .aspx page to Master page Javascript,
So,how i access this hiddenfield value.

If you want to access a HiddenField from a content page rather than a master page, then, you can use this post:[^]

I hope it helps,
Share this answer
You want to access a hidden field with JavaScript? Ok, remember that when the page is rendered to the client there is no separation between masterpage and content page. It's all rendered together. So you access the element as you normally would access in JavaScript.
Share this answer
Share this answer
var hiddenfld = document.getelementbyId('<%=HiddenfieldId1.ClientID %>');

Edit: Code Formatted
Share this answer
[no name] 18-Apr-12 8:51am    
Tightly coupling your JavaScript to the page and control IDs is not very extensible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900