K
King Coffee
Hi,
I would like to set some form tag attributes. The form is in the mater page.
The asp ID tags (Text2 and Button3) are in the main content selection of a
web form page. The code below does not work but it shows my intend. How can
I dynamically update the master page form from a child page?
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
document.getElementById('form1').setAttribute("defaultfocus",
$get('Text2'));
document.getElementById('form1').setAttribute("defaultbutton",
$get('Button3'));
</script>
</asp:Content>
King
I would like to set some form tag attributes. The form is in the mater page.
The asp ID tags (Text2 and Button3) are in the main content selection of a
web form page. The code below does not work but it shows my intend. How can
I dynamically update the master page form from a child page?
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
document.getElementById('form1').setAttribute("defaultfocus",
$get('Text2'));
document.getElementById('form1').setAttribute("defaultbutton",
$get('Button3'));
</script>
</asp:Content>
King