Hi.
In my Solution i have master page and content pages.Content page contains 1 hiddent field.i want to retrieve my hiddenfield which contain in content page from masterpage using javascript.how can i get the hiddenfield value...
Thanks in advance....
Loading
CrishPosted May 27, 2010, 5:41 AM
you can get value from your hidden textbox using javascript. use below code..
document.getElementById("<%=hiddenfiledID.ClientID%>").value
thanks
Don't forget to Mark Do you like this Answer
Deepthi AravindPosted May 27, 2010, 2:58 AM
iam not getting the alert...Is Hidden1 is in your contentpage..
Dipa AhujaPosted May 27, 2010, 2:28 AM
<script type="text/javascript">
function getValue(){
alert(document.getElementById('Hidden1').value);}
script>